Skip to content

Commit 086364f

Browse files
committed
Update README.md
1 parent 1862fc3 commit 086364f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/I2CEncoderV2/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ The I2C encoder V2 will multiplies this value by 10 (value x10).
241241

242242
###### Examples:
243243

244-
```C++
244+
```C++
245245
encoder.writeAntibouncingPeriod(20); //Set an anti-bouncing of 200ms
246246
```
247247

@@ -263,7 +263,7 @@ encoder.writeDoublePushPeriod(50); //Set a period for the double push of 500ms
263263
This method is used for setting the fade speed **FADERGB** of the RGB LED of the rotary encoder. It the value is 0, the fade option is disabled.
264264
###### Examples:
265265

266-
```C++
266+
```C++
267267
encoder.writeFadeRGB(1); //Fade enabled with 1ms step
268268
```
269269
@@ -294,7 +294,7 @@ In case an event of the I2STATUS register, the I2STATUS is automatically be rea
294294
295295
296296
297-
##### bool readStatus(uint8_t s)
297+
##### bool readStatus(Int_Status s)
298298
299299
Must be called after **updateStatus()**, this method is used for checking if some event occurs on the **ESTATUS** register.
300300
Return value is **true** in case of the event occured, otherwise is **false**
@@ -349,7 +349,7 @@ Return the status of the register **ESTATUS**
349349

350350

351351

352-
##### bool readInt2(uint8_t s)
352+
##### bool readInt2(Int2_Status s)
353353
Must be called after **updateStatus()**, this method is used for checking if some event occurred on the secondary interrupt status **I2STATUS** register.
354354
Return value is **true** in case of the event occured, otherwise is **false**
355355
Possible parameters are:
@@ -403,7 +403,7 @@ Return the status of the register **I2STATUS**
403403
404404
405405
406-
##### bool readFadeStatus(uint8_t s)
406+
##### bool readFadeStatus(Fade_Status s)
407407
408408
When this function is called, it performs a I2C reading.
409409
This function return **true** when the fade running, otherwise return **false**

0 commit comments

Comments
 (0)