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: docs/programming/arduino.md
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The [Arduino](https://store.arduino.cc/arduino-uno-rev3) provides a
4
4
total of 18 pins for either digital input or output (labelled 2 to 13
5
-
and A0 to A5), including 6 for analogue input (labelled A0 to A5).
5
+
and A0 to A5), pins A0 to A5 also support analog input.
6
6
7
7
!!! warning
8
8
Digital pins 0 and 1 are reserved and cannot be used.
@@ -23,7 +23,7 @@ rest of our kit.
23
23
24
24
## Pin Mode
25
25
26
-
GPIO pins have four different modes. A pin can only have one mode at a
26
+
GPIO pins have different modes. A pin can only have one mode at a
27
27
time, and some pins aren't compatible with certain modes. These pin
28
28
modes are represented by an
29
29
[enum](https://docs.python.org/3/library/enum.html) which needs to be
@@ -34,7 +34,8 @@ from sbot import GPIOPinMode
34
34
```
35
35
36
36
!!! tip
37
-
The input modes closely resemble those of an Arduino. More information on them can be found in [their docs](https://www.arduino.cc/en/Tutorial/DigitalPins).
37
+
The input modes closely resemble those of an Arduino.
38
+
More information on them can be found in [their docs](https://www.arduino.cc/en/Tutorial/DigitalPins).
38
39
39
40
### Setting the pin mode
40
41
@@ -43,77 +44,76 @@ performing an action with that pin. You can read about the possible pin
The ultrasound sensor can measure distances up to 2 metres. If the ultrasound signal has to travel further than 2m, the sensor will timeout and return `None`.
118
+
The ultrasound sensor can measure distances up to 4 metres.
119
+
If the ultrasound signal has to travel further than 4m, the sensor will timeout and return 0.
0 commit comments