Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <Arduino.h>
  2. #include <TM1637Display.h>
  3.  
  4. #define CLK 2
  5. #define DIO 3
  6.  
  7.  
  8. const uint8_t SEG_HELL[] = {
  9. SEG_B | SEG_C | SEG_E | SEG_F | SEG_G, // H
  10. SEG_A | SEG_D | SEG_E | SEG_F | SEG_G, // E
  11. SEG_F | SEG_E | SEG_D, // L
  12. SEG_F | SEG_E | SEG_D, // L
  13. };
  14.  
  15. TM1637Display display(CLK, DIO);
  16.  
  17. void setup()
  18. {
  19. }
  20.  
  21. void loop()
  22. {
  23.  
  24. display.setBrightness(7, true);
  25.  
  26. display.setSegments(SEG_HELL);
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement