Merge pull request #1028 from gedankenexperimenter/model01-header-includes

Move header includes in Model01Side.h outside namespace blocks
pull/1029/head
Gergely Nagy 3 years ago committed by GitHub
commit b4fdefa312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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];

Loading…
Cancel
Save