Advertisement
Guest User

parte 3

a guest
May 22nd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <Charliplexing.h>
  2. #include <Figure.h>
  3. #include <Font.h>
  4. int x;
  5. void setup() {
  6.   // put your setup code here, to run once:
  7. LedSign::Init();
  8. randomSeed(analogRead(0));
  9. x = random(0,13);
  10. LedSign::Vertical(x,1);
  11. }
  12.  
  13. void loop() {
  14.   // put your main code here, to run repeatedly:
  15.  
  16.   for(int y = 0; y <= x; y++){
  17.   LedSign::Set(y,4,1);
  18.   delay(500);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement