|
|
@ -23,10 +23,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
namespace kaleidoscope {
|
|
|
|
|
|
|
|
namespace driver {
|
|
|
|
|
|
|
|
namespace keyboardio {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include "wire-protocol-constants.h"
|
|
|
|
#include "wire-protocol-constants.h"
|
|
|
|
|
|
|
|
|
|
|
@ -46,6 +42,10 @@ struct cRGB {
|
|
|
|
#define LEDS_PER_HAND 32
|
|
|
|
#define LEDS_PER_HAND 32
|
|
|
|
#define LED_BYTES_PER_BANK sizeof(cRGB) * LEDS_PER_HAND/LED_BANKS
|
|
|
|
#define LED_BYTES_PER_BANK sizeof(cRGB) * LEDS_PER_HAND/LED_BANKS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace kaleidoscope {
|
|
|
|
|
|
|
|
namespace driver {
|
|
|
|
|
|
|
|
namespace keyboardio {
|
|
|
|
|
|
|
|
|
|
|
|
typedef union {
|
|
|
|
typedef union {
|
|
|
|
cRGB leds[LEDS_PER_HAND];
|
|
|
|
cRGB leds[LEDS_PER_HAND];
|
|
|
|
byte bytes[LED_BANKS][LED_BYTES_PER_BANK];
|
|
|
|
byte bytes[LED_BANKS][LED_BYTES_PER_BANK];
|
|
|
|