@@ -98,36 +98,31 @@ here are the steps to create the project:
98
98
99
99
1 . Make sure that you change the
100
100
7-Segment Display common terminal to
101
- ` cathode ` .
102
-
103
- ![ setup] ( https://github.com/xdvrx1/single-display-arduino-project/blob/main/res/src6.png?raw=true )
101
+ ` cathode ` . ![ setup] ( https://github.com/xdvrx1/single-display-arduino-project/blob/main/res/src6.png?raw=true )
104
102
105
103
2 . Follow the proper wiring:
106
-
107
- | Arduino Pin| Segment Pin|
108
- | :---:| :---:|
109
- | 13| G|
110
- | 12| F|
111
- | 11| A|
112
- | 10| B|
113
- | 9| E|
114
- | 8| D|
115
- | 7| C|
116
- | 6| DP|
104
+
105
+ | Arduino Pin| Segment Pin|
106
+ | :---:| :---:|
107
+ | 13| G|
108
+ | 12| F|
109
+ | 11| A|
110
+ | 10| B|
111
+ | 9| E|
112
+ | 8| D|
113
+ | 7| C|
114
+ | 6| DP|
117
115
118
116
3 . Close the circuit by the GND. Use a resistor
119
117
that is exactly 200 ohms (left resistor
120
118
when facing the screen) and 100 ohms for
121
119
the other one.
122
-
123
120
left:
124
121
![ left] ( https://github.com/xdvrx1/single-display-arduino-project/blob/main/res/src10.png?raw=true )
125
-
126
122
right:
127
123
![ right] ( https://github.com/xdvrx1/single-display-arduino-project/blob/main/res/src9.png?raw=true )
128
124
129
125
4 . Copy paste the program below:
130
-
131
126
```
132
127
unsigned const int A = 13;
133
128
unsigned const int B = 12;
@@ -300,11 +295,11 @@ void loop(void)
300
295
}
301
296
```
302
297
303
- The code will simply have the countdown
304
- but the individual function for a certain
305
- number can be used several times for your
306
- own version. Simply invoke the function
307
- inside the ` void loop ` .
298
+ The code will simply have the countdown
299
+ but the individual function for a certain
300
+ number can be used several times for your
301
+ own version. Simply invoke the function
302
+ inside the ` void loop ` .
308
303
309
304
5 . Of course, simulate the program!
310
305
0 commit comments