|
|
@ -6,6 +6,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
#define USE_HSV_CURVE 1
|
|
|
|
#define USE_HSV_CURVE 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// SX1509 I2C address (10)
|
|
|
|
|
|
|
|
#define LEFT_SX1509_ADDRESS 0x70
|
|
|
|
|
|
|
|
// SX1509 I2C address (11)
|
|
|
|
|
|
|
|
#define RIGHT_SX1509_ADDRESS 0x71
|
|
|
|
|
|
|
|
|
|
|
|
#define RIGHT_COLS 8
|
|
|
|
#define RIGHT_COLS 8
|
|
|
|
#define RIGHT_ROWS 4
|
|
|
|
#define RIGHT_ROWS 4
|
|
|
@ -47,6 +51,11 @@ void leds_setup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
|
|
|
|
static sx1509Class leftsx1509;
|
|
|
|
|
|
|
|
static sx1509Class rightsx1509;
|
|
|
|
|
|
|
|
static WS2812 LED;
|
|
|
|
|
|
|
|
int right_initted = 0;
|
|
|
|
|
|
|
|
int left_initted = 0;
|
|
|
|
|
|
|
|
|
|
|
|
void make_input(sx1509Class sx1509, uint8_t pin) ;
|
|
|
|
void make_input(sx1509Class sx1509, uint8_t pin) ;
|
|
|
|
void make_output(sx1509Class sx1509, uint8_t pin) ;
|
|
|
|
void make_output(sx1509Class sx1509, uint8_t pin) ;
|
|
|
|