Skip to content

Instantly share code, notes, and snippets.

View KokoseiJ's full-sized avatar
🏠
Y'all, Stay home with your IDE.

Wonjun Jung KokoseiJ

🏠
Y'all, Stay home with your IDE.
View GitHub Profile
@camprevail
camprevail / sdvx-amps.ino
Created December 27, 2024 19:38
Init sdvx amps to a set volume
// 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,