Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <MD_Parola.h>
  2. #include <MD_MAX72xx.h>
  3. #include <SPI.h>
  4.  
  5. // Define the number of devices we have in the chain and the hardware interface
  6.  
  7. #define MAX_DEVICES 4
  8. #define CLK_PIN 13
  9. #define DATA_PIN 11
  10. #define CS_PIN 10
  11.  
  12. // Hardware SPI connection
  13. MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);
  14. // Arbitrary output pins
  15. // MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
  16.  
  17. void setup(void)
  18. {
  19. P.begin();
  20. P.displayText("Hello", PA_CENTER, 0, 0, PA_PRINT, PA_NO_EFFECT);
  21. }
  22.  
  23. void loop(void)
  24. {
  25. P.displayAnimate();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement