Skip to content

Commit d57d283

Browse files
committed
docs(vale): Enable vale and fix errors
1 parent 9534bbc commit d57d283

File tree

52 files changed

+166
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+166
-137
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
exclude: |
22
(?x)(
33
^\.github\/|
4-
^tests\/performance\/coremark\/.*\.[ch]$
4+
^tests\/performance\/coremark\/.*\.[ch]$|
5+
LICENSE\.md$
56
)
67
78
default_language_version:
@@ -64,8 +65,6 @@ repos:
6465
pass_filenames: false
6566
args: [sync]
6667
types_or: [markdown, rst]
67-
stages: [manual]
6868
- id: vale
6969
language_version: "1.21.6"
7070
types_or: [markdown, rst]
71-
stages: [manual]

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ StylesPath = .vale/styles
2323

2424

2525
# Specify the minimum alert severity that Vale will report.
26-
MinAlertLevel = suggestion # "suggestion", "warning", or "error"
26+
MinAlertLevel = error # "suggestion", "warning", or "error"
2727

2828

2929
# Specify vocabulary for special treatment.

docs/en/api/adc.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ analogReadResolution
5353
^^^^^^^^^^^^^^^^^^^^
5454

5555
This function is used to set the resolution of ``analogRead`` return value. Default is 12 bits (range from 0 to 4095)
56-
for all chips except ESP32S3 where default is 13 bits (range from 0 to 8191).
56+
for all chips except ESP32-S3 where default is 13 bits (range from 0 to 8191).
5757
When different resolution is set, the values read will be shifted to match the given resolution.
5858

5959
Range is 1 - 16 .The default value will be used, if this function is not used.
@@ -146,7 +146,7 @@ analogSetWidth
146146
.. note:: This function is only available for ESP32 chip.
147147

148148
This function is used to set the hardware sample bits and read resolution.
149-
Default is 12bit (0 - 4095).
149+
Default is 12 bits (0 - 4095).
150150
Range is 9 - 12.
151151

152152
.. code-block:: arduino
@@ -250,13 +250,13 @@ This function is used to set the attenuation for ADC continuous peripheral. For
250250
251251
void analogContinuousSetAtten(adc_attenuation_t attenuation);
252252
253-
* ``attenuation`` sets the attenuation (default is 11db).
253+
* ``attenuation`` sets the attenuation (default is 11 dB).
254254

255255
analogContinuousSetWidth
256256
^^^^^^^^^^^^^^^^^^^^^^^^
257257

258258
This function is used to set the hardware resolution bits.
259-
Default value for all chips is 12bit (0 - 4095).
259+
Default value for all chips is 12 bits (0 - 4095).
260260

261261
.. note:: This function will take effect only for ESP32 chip, as it allows to set resolution in range 9-12 bits.
262262

docs/en/api/dac.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This function is used to set the DAC value for a given pin/DAC channel.
3333
void dacWrite(uint8_t pin, uint8_t value);
3434
3535
* ``pin`` GPIO pin.
36-
* ``value`` to be set. Range is 0 - 255 (equals 0V - 3.3V).
36+
* ``value`` to be set. Range is 0 - 255 (equals 0 V - 3.3 V).
3737

3838
dacDisable
3939
**********

docs/en/api/espnow.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Create an instance of the `ESP_NOW_Peer` class.
104104
105105
* ``mac_addr``: MAC address of the peer device.
106106
* ``channel``: Communication channel.
107-
* ``iface``: WiFi interface.
107+
* ``iface``: Wi-Fi interface.
108108
* ``lmk``: Optional. Pass the local master key (LMK) if encryption is enabled.
109109

110110
add
@@ -190,24 +190,24 @@ Set the communication channel of the peer.
190190
getInterface
191191
^^^^^^^^^^^^
192192

193-
Get the WiFi interface of the peer.
193+
Get the Wi-Fi interface of the peer.
194194

195195
.. code-block:: cpp
196196
197197
wifi_interface_t getInterface() const;
198198
199-
Returns the WiFi interface.
199+
Returns the Wi-Fi interface.
200200

201201
setInterface
202202
^^^^^^^^^^^^
203203

204-
Set the WiFi interface of the peer.
204+
Set the Wi-Fi interface of the peer.
205205

206206
.. code-block:: cpp
207207
208208
void setInterface(wifi_interface_t iface);
209209
210-
* ``iface``: WiFi interface.
210+
* ``iface``: Wi-Fi interface.
211211

212212
isEncrypted
213213
^^^^^^^^^^^

docs/en/api/i2c.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ This function will return the current frequency configuration.
103103
setTimeOut
104104
^^^^^^^^^^
105105

106-
Set the bus timeout given in milliseconds. The default value is 50ms.
106+
Set the bus timeout given in milliseconds. The default value is 50 ms.
107107

108108
.. code-block:: arduino
109109

docs/en/api/insights.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ESP Insights
55
About
66
-----
77

8-
ESP Insights is a remote diagnostics solution that allows users to remotely monitor the health of ESP devices in the field.
8+
ESP Insights is a remote diagnostics solution that allows users to remotely monitor the health of Espressif devices in the field.
99

1010
Developers normally prefer debugging issues by physically probing them using gdb or observing the logs. This surely helps debug issues, but there are often cases wherein issues are seen only in specific environments under specific conditions. Even things like casings and placement of the product can affect the behavior. A few examples are
1111

@@ -156,8 +156,8 @@ This function will return
156156
Insights.metrics.dumpWiFi
157157
*************************
158158

159-
Dumps the wifi metrics and prints them to the console.
160-
This API can be used to collect wifi metrics at any given point in time.
159+
Dumps the Wi-Fi metrics and prints them to the console.
160+
This API can be used to collect Wi-Fi metrics at any given point in time.
161161

162162
.. code-block:: arduino
163163
@@ -185,8 +185,8 @@ Insights.metrics.setWiFiPeriod
185185
******************************
186186

187187
Reset the periodic interval
188-
By default, wifi metrics are collected every 30 seconds, this function can be used to change the interval.
189-
If the interval is set to 0, wifi metrics collection disabled.
188+
By default, Wi-Fi metrics are collected every 30 seconds, this function can be used to change the interval.
189+
If the interval is set to 0, Wi-Fi metrics collection disabled.
190190

191191
.. code-block:: arduino
192192

docs/en/api/rainmaker.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ESP RainMaker Agent API
2929
RMaker.initNode
3030
***************
3131

32-
This initializes the ESP RainMaker agent, wifi and creates the node.
32+
This initializes the ESP RainMaker agent, Wi-Fi and creates the node.
3333

3434
You can also set the configuration of the node using the following API
3535

@@ -54,7 +54,7 @@ It starts the ESP RainMaker agent.
5454
**NOTE**:
5555

5656
1. ESP RainMaker agent should be initialized before this call.
57-
2. Once ESP RainMaker agent starts, compulsorily call WiFi.beginProvision() API.
57+
2. Once ESP RainMaker agent starts, compulsorily call ``WiFi.beginProvision()`` API.
5858

5959
.. code-block:: arduino
6060

docs/en/api/touch.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ touchSetCycles
3636
^^^^^^^^^^^^^^
3737

3838
This function is used to set cycles that measurement operation takes. The result from touchRead, threshold and detection accuracy depend on these values.
39-
The defaults are setting touchRead to take ~0.5ms.
39+
The defaults are setting touchRead to take ~0.5 ms.
4040

4141
.. code-block:: arduino
4242
@@ -112,8 +112,8 @@ the threshold value. Default is lower.
112112
113113
void touchInterruptSetThresholdDirection(bool mustbeLower);
114114
115-
TOUCH API specific for ESP32S2 and ESP32S3 chip (TOUCH_V2)
116-
**********************************************************
115+
TOUCH API specific for ESP32-S2 and ESP32-S3 chip (TOUCH_V2)
116+
************************************************************
117117

118118
touchInterruptGetLastStatus
119119
^^^^^^^^^^^^^^^^^^^^^^^^^^^

docs/en/api/usb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Get the USB power configuration.
154154
155155
uint16_t usbPower(void);
156156
157-
Return the current in mA. The default value is: ``0x500`` (500mA).
157+
Return the current in mA. The default value is: ``0x500`` (500 mA).
158158

159159
usbClass
160160
^^^^^^^^

0 commit comments

Comments
 (0)