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, \