From 5343f4306e4924705d4545df17910ab697e62bad Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 22 Oct 2018 00:27:34 +0200 Subject: Drop the LED-Off.h include, the header is deprecated Signed-off-by: Gergely Nagy --- Model01-Firmware.ino | 3 --- 1 file changed, 3 deletions(-) diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 371effb..5fd75f8 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -35,9 +35,6 @@ // Support for "Numpad" mode, which is mostly just the Numpad specific LED mode #include "Kaleidoscope-NumPad.h" -// Support for an "LED off mode" -#include "LED-Off.h" - // Support for the "Boot greeting" effect, which pulses the 'LED' button for 10s // when the keyboard is connected to a computer (or that computer is powered on) #include "Kaleidoscope-LEDEffect-BootGreeting.h" -- cgit v1.2.3 From 479f992271bff623cbe8d57616d801ba8e718642 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 22 Oct 2018 00:28:39 +0200 Subject: src/Model01-Firmware.h: Add a #pragma once to make cpplint happy Signed-off-by: Gergely Nagy --- src/Model01-Firmware.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model01-Firmware.h b/src/Model01-Firmware.h index e69de29..8a4dc34 100644 --- a/src/Model01-Firmware.h +++ b/src/Model01-Firmware.h @@ -0,0 +1,2 @@ +// Lets make cpplint happy! +#pragma once -- cgit v1.2.3 From ab57ab84689b91a49ec875b34f75e62ed5ef2a28 Mon Sep 17 00:00:00 2001 From: Anders Hustvedt Date: Mon, 29 Oct 2018 06:09:15 -0600 Subject: Fix anyKeyMacro for new hid API Signed-off-by: Anders Hustvedt --- Model01-Firmware.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 5fd75f8..a5363f0 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -291,11 +291,14 @@ static void versionInfoMacro(uint8_t keyState) { static void anyKeyMacro(uint8_t keyState) { static Key lastKey; - if (keyToggledOn(keyState)) + bool toggledOn = false; + if (keyToggledOn(keyState)) { lastKey.keyCode = Key_A.keyCode + (uint8_t)(millis() % 36); + toggledOn = true; + } if (keyIsPressed(keyState)) - kaleidoscope::hid::pressKey(lastKey); + kaleidoscope::hid::pressKey(lastKey, toggledOn); } -- cgit v1.2.3