This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Pin definitions | |
| #define DATA_PIN 2 | |
| #define CLOCK_PIN 3 | |
| #define HI(pin) pinMode(pin, INPUT) | |
| #define LO(pin) pinMode(pin, OUTPUT) | |
| enum VOLTAGE: uint32_t { | |
| _12vto15v = 0b11, | |
| _9vto12v = 0b10, | |
| _6vto9v = 0b01, |