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: gpio/hello_7segment/README.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ Our 7 Segment display has pins as follows.
14
14
--D--
15
15
----
16
16
17
-
By default we are allocating GPIO 2 to A, 3 to B etc.
17
+
By default we are allocating GPIO 2 to segment A, 3 to B etc.
18
18
So, connect GPIO 2 to pin A on the 7 segment LED display and so on. You will need the appropriate resistors (68 ohm should be fine) for each segment.
19
-
The LED device used here is common anode, so the anode pin is connected to the 3.3v supply, and the GPIO's need to pull low (to ground) to complete the circuit.
20
-
The pull direction of the GPIO's is specified in the code itself.
19
+
The LED device used here is common anode, so the anode pin is connected to the 3.3v supply, and the GPIOs need to pull low (to ground) to complete the circuit.
20
+
The pull direction of the GPIOs is specified in the code itself.
21
21
22
22
Connect the switch to connect on pressing. One side should be connected to ground, the other to GPIO 9.
0 commit comments