Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int ser = 8;
- const int latch = 9;
- const int clk = 10;
- int Mandy [10] = {63, 5, 91, 79, 101, 110, 126, 7, 127, 103};
- void setup() {
- pinMode (ser, OUTPUT);
- pinMode (latch, OUTPUT);
- pinMode (clk, OUTPUT);
- }
- void loop() {
- for (int i an= 0; i<10; i++)
- {
- digitalWrite (latch, LOW);
- shiftOut (ser, clk, MSBFIRST, Mandy [i]);
- digitalWrite (latch, HIGH);
- delay (2000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement