Added `LayerCount` variable to the example sketches

This took some trial and error to figure out, but once I determined
that the example sketches were being built, I made this change to keep
the build working. Hopefully this will satisfy Travis-CI.
pull/244/head
Michael Richters 7 years ago
parent 9db5036a5c
commit 7ddc0249bb

@ -46,6 +46,11 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
};
/* *INDENT-ON* */
// Calculate the number of layers defined in the "keymaps[]" array
// above for use elsewhere in Kaleidoscope. Don't remove or modify
// this line; it's used to prevent reading past the end of the array!
const uint8_t LayerCount PROGMEM = sizeof(keymaps) / sizeof(*keymaps);
const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
switch (macroIndex) {

@ -65,6 +65,11 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
};
// Calculate the number of layers defined in the "keymaps[]" array
// above for use elsewhere in Kaleidoscope. Don't remove or modify
// this line; it's used to prevent reading past the end of the array!
const uint8_t LayerCount PROGMEM = sizeof(keymaps) / sizeof(*keymaps);
static kaleidoscope::LEDSolidColor solidRed(60, 0, 0);
static kaleidoscope::LEDSolidColor solidOrange(60, 20, 0);
static kaleidoscope::LEDSolidColor solidYellow(40, 35, 0);

Loading…
Cancel
Save