Guest User

Untitled

a guest
Apr 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <FOURDIGITS.h>
  2. FOURDIGITS ciao;
  3. void setup() {
  4. 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...
  5. ciao.digitInit(10,11,12,13);// Initializing the digits connections, i connected the first digit cathode to arduino pin 10 etc...
  6.  
  7. void loop() {
  8. ciao.swrite(3,7);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment