SHARE
TWEET

Untitled

a guest Mar 26th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top