Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9eba9b1

Browse files
committedMar 3, 2017
fixed Firmata compatibility
1 parent 3989ed3 commit 9eba9b1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
 

‎cores/arduino/io.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
* @see pinMode()
5050
*/
5151
typedef enum WiringPinMode {
52+
INPUT, /**< Basic digital input. The pin voltage is sampled; when
53+
it is closer to 3.3v (Vcc) the pin status is high, and
54+
when it is closer to 0v (ground) it is low. If no
55+
external circuit is pulling the pin voltage to high or
56+
low, it will tend to randomly oscillate and be very
57+
sensitive to noise (e.g., a breath of air across the pin
58+
might cause the state to flip). */
59+
5260
OUTPUT, /**< Basic digital output: when the pin is HIGH, the
5361
voltage is held at +3.3v (Vcc) and when it is LOW, it
5462
is pulled down to ground. */
@@ -69,13 +77,7 @@ typedef enum WiringPinMode {
6977
mode, no current is ever actually sourced
7078
from the pin. */
7179

72-
INPUT, /**< Basic digital input. The pin voltage is sampled; when
73-
it is closer to 3.3v (Vcc) the pin status is high, and
74-
when it is closer to 0v (ground) it is low. If no
75-
external circuit is pulling the pin voltage to high or
76-
low, it will tend to randomly oscillate and be very
77-
sensitive to noise (e.g., a breath of air across the pin
78-
might cause the state to flip). */
80+
7981

8082
INPUT_PULLUP, /**< The state of the pin in this mode is reported
8183
the same way as with INPUT, but the pin voltage

0 commit comments

Comments
 (0)
This repository has been archived.