count_up.ino 571 B

123456789101112131415161718
  1. #include <Lixie_II.h> // https://github.com/connornishijima/Lixie_II
  2. #define DATA_PIN 13 // Lixie DIN connects to this pin (D7 on Wemos)
  3. #define NUM_DIGITS 4
  4. Lixie_II lix(DATA_PIN, NUM_DIGITS);
  5. uint16_t counter = 0;
  6. void setup() {
  7. lix.begin(); // Mandatory, sets up animation timer
  8. lix.color_all(ON, CRGB(255, 70, 7)); // (Optional) Nixie tube coloring
  9. lix.transition_time(125); // (Optional) 125 milliseconds crossfade time
  10. }
  11. void loop() {
  12. lix.write(counter);
  13. delay(1000);
  14. counter = counter + 1;
  15. }