Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FOURDIGITS.h>
- FOURDIGITS ciao;
- void setup() {
- ciao.segmentInit(2,3,4,5,6,7,8,9); // Initializing the segments connections, i connected arduino pin 2 to A anode, 3 to B anode etc...
- ciao.digitInit(10,11,12,13);// Initializing the digits connections, i connected the first digit cathode to arduino pin 10 etc...
- void loop() {
- ciao.swrite(3,7);
- }
Advertisement
Add Comment
Please, Sign In to add comment