You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-11
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,6 @@ The class’ constructor takes one required parameter (a configured imp I²C
17
17
|*i2cBus*| hardware.i2c | N/A | A pre-configured I²C bus |
18
18
|*i2cAddress*| byte | 0x30 | The I²C address of the accelerometer |
19
19
20
-
<br>
21
-
22
20
```squirrel
23
21
#require "LIS3DH.class.nut:1.3.0"
24
22
@@ -63,7 +61,7 @@ Normal mode is enabled by default.
63
61
accel.setLowPower(true);
64
62
```
65
63
66
-
### enable([*state*])
64
+
### enable(*[state]*)
67
65
68
66
The *enable()* method enables or disables all three axes on the accelerometer. The method takes an optional boolean parameter, *state*. By default *state* is set to `true` and the accelerometer is enabled. When *state* is `false`, the accelerometer will be disabled.
69
67
@@ -135,7 +133,7 @@ This method configures an interrupt when the FIFO buffer reaches the set waterma
|*FIFO_BYPASS_MODE*| Disables the FIFO buffer (only the first address is used for each channel) |
190
188
|*FIFO_FIFO_MODE*| When full, the FIFO buffer stops collecting data from the input channels |
191
189
|*FIFO_STREAM_MODE*| When full, the FIFO buffer discards the older data as the new arrive |
192
-
|*FIFO_STREAM_TO_FIFO_MODE*| When full, the FIFO buffer discards the older data as the new arrive.<br>Once trigger event occurs, the FIFO buffer starts operating in FIFO mode. |
190
+
|*FIFO_STREAM_TO_FIFO_MODE*| When full, the FIFO buffer discards the older data as the new arrive.<br>Once trigger event occurs, the FIFO buffer starts operating in FIFO mode |
0 commit comments