From a114f3c1a43362158e42ad5a2765bc7a2bb5412d Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Wed, 20 Nov 2019 23:29:23 +0100 Subject: [PATCH] Enabled virtual build for Keyboardio/Imago Signed-off-by: Florian Fleissner --- src/kaleidoscope/device/keyboardio/Imago.cpp | 4 ++++ src/kaleidoscope/device/keyboardio/Imago.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/kaleidoscope/device/keyboardio/Imago.cpp b/src/kaleidoscope/device/keyboardio/Imago.cpp index 0890c54c..d840ba39 100644 --- a/src/kaleidoscope/device/keyboardio/Imago.cpp +++ b/src/kaleidoscope/device/keyboardio/Imago.cpp @@ -33,6 +33,8 @@ namespace keyboardio { constexpr uint8_t ImagoLEDDriverProps::key_led_map[] PROGMEM; +#ifndef KALEIDOSCOPE_VIRTUAL_BUILD + static constexpr uint8_t CMD_SET_REGISTER = 0xFD; static constexpr uint8_t CMD_WRITE_ENABLE = 0xFE; static constexpr uint8_t WRITE_ENABLE_ONCE = 0b11000101; @@ -172,6 +174,8 @@ void Imago::setup() { kaleidoscope::device::ATmega32U4Keyboard::setup(); } +#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD + } } } diff --git a/src/kaleidoscope/device/keyboardio/Imago.h b/src/kaleidoscope/device/keyboardio/Imago.h index e580cba2..03ff9337 100644 --- a/src/kaleidoscope/device/keyboardio/Imago.h +++ b/src/kaleidoscope/device/keyboardio/Imago.h @@ -51,6 +51,7 @@ struct ImagoLEDDriverProps: public kaleidoscope::driver::led::BaseProps { }; }; +#ifndef KALEIDOSCOPE_VIRTUAL_BUILD class ImagoLEDDriver : public kaleidoscope::driver::led::Base { public: static void setup(); @@ -68,6 +69,9 @@ class ImagoLEDDriver : public kaleidoscope::driver::led::Base { public: void setup(); }; +#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #define PER_KEY_DATA(dflt, \ R0C0, R0C1, R0C2, R0C3, R0C4, R0C5, R0C6, R0C7, R0C8, R0C9, R0C10, R0C11, R0C12, R0C13, R0C14, R0C15, \