Advertisement
ChaOSzz

Untitled

Apr 18th, 2022
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <MD_MAX72xx.h>
  2.  
  3. #define MAX_DEVICES 2
  4.  
  5. const int maxX = 15;
  6. const int maxY = 7;
  7.  
  8. #define CS_PIN      10
  9.  
  10. #define VERT_PIN A0
  11. #define HORZ_PIN A1
  12. #define SEL_PIN  2
  13.  
  14. MD_MAX72XX mx = MD_MAX72XX(MD_MAX72XX::PAROLA_HW, CS_PIN, MAX_DEVICES);
  15.  
  16. int x = 0;
  17. int y = 0;
  18.  
  19. void setup() {
  20.   mx.begin();
  21.   mx.control(MD_MAX72XX::INTENSITY, MAX_INTENSITY / 2);
  22.   mx.clear();
  23.  
  24.   pinMode(VERT_PIN, INPUT);
  25.   pinMode(HORZ_PIN, INPUT);
  26.   pinMode(SEL_PIN, INPUT_PULLUP);
  27. }
  28.  
  29. void loop() {
  30.  
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement