diff --git a/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp b/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp index 27b4d530a4..bf5dff296b 100644 --- a/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp +++ b/plugins/Kaleidoscope-FocusSerial/src/kaleidoscope/plugin/FocusSerial.cpp @@ -139,7 +139,7 @@ bool FocusSerial::inputMatchesCommand(const char *input, const char *expected) { bool FocusSerial::isEOL() { int c = -1; - auto timeout = 1000; // Runtime.serialPort().getTimeout(); // TODO nrf core doesn't expose getTimeout + auto timeout = 1000; // Runtime.serialPort().getTimeout(); // TODO nrf core doesn't expose getTimeout auto start = millis(); diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.cpp b/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.cpp index 2769d35b05..dea6f78067 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.cpp +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.cpp @@ -48,19 +48,16 @@ constexpr uint8_t KeyScannerProps::matrix_col_pins[matrix_columns]; //// `KeyScanner` here refers to the alias set up above, just like in the //// `KeyScannerProps` case above. template<> -KeyScanner::row_state_t -kaleidoscope::driver::keyscanner::Simple::matrix_state_ - -[KeyScannerProps::matrix_rows] = {}; - +KeyScanner::row_state_t + kaleidoscope::driver::keyscanner::Simple::matrix_state_ + [KeyScannerProps::matrix_rows] = {}; template<> uint32_t kaleidoscope::driver::keyscanner::Simple::next_scan_at_ = 0; - } // namespace keyboardio } // namespace device } // namespace kaleidoscope diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.h index 9537da6cb1..f503db883d 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model101/src/kaleidoscope/device/keyboardio/Model101.h @@ -51,20 +51,16 @@ struct Model101StorageProps : public kaleidoscope::driver::storage::BaseProps { }; - - struct Model101KeyScannerProps : public kaleidoscope::driver::keyscanner::SimpleProps { static constexpr uint8_t matrix_rows = 4; static constexpr uint8_t matrix_columns = 16; typedef MatrixAddr KeyAddr; static constexpr uint8_t matrix_row_pins[matrix_rows] = {A0, A1, A2, A3}; - static constexpr uint8_t matrix_col_pins[matrix_columns] = {A4, A5, SCK, MOSI, MISO, 1,0,2, 22,23, 5, 6, 9, 10, 11, 12}; - + static constexpr uint8_t matrix_col_pins[matrix_columns] = {A4, A5, SCK, MOSI, MISO, 1, 0, 2, 22, 23, 5, 6, 9, 10, 11, 12}; }; - // If we need to override HID props: struct Model101HIDProps : public kaleidoscope::driver::hid::BaseProps { //typedef kaleidoscope::driver::hid::base::AbsoluteMouseProps AbsoluteMouseProps; @@ -77,7 +73,7 @@ struct Model101Props : public kaleidoscope::device::BaseProps { typedef kaleidoscope::driver::hid::Base HID; typedef kaleidoscope::driver::led::BaseProps LEDDriverProps; - typedef kaleidoscope::driver::led::Base LEDDriver; + typedef kaleidoscope::driver::led::Base LEDDriver; typedef Model101KeyScannerProps KeyScannerProps; typedef kaleidoscope::driver::keyscanner::Simple KeyScanner; diff --git a/plugins/Kaleidoscope-HardwareTestMode/src/kaleidoscope/plugin/HardwareTestMode.cpp b/plugins/Kaleidoscope-HardwareTestMode/src/kaleidoscope/plugin/HardwareTestMode.cpp index dad81275cb..90e28d6862 100644 --- a/plugins/Kaleidoscope-HardwareTestMode/src/kaleidoscope/plugin/HardwareTestMode.cpp +++ b/plugins/Kaleidoscope-HardwareTestMode/src/kaleidoscope/plugin/HardwareTestMode.cpp @@ -18,12 +18,12 @@ #include // for uint8_t -#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range -#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ -#include "kaleidoscope/device/device.h" // for Device, cRGB, CRGB, Base<>::HID -#include "kaleidoscope/driver/hid/base/Keyboard.h" // for Keyboard -#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl -#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb +#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range +#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ +#include "kaleidoscope/device/device.h" // for Device, cRGB, CRGB, Base<>::HID +#include "kaleidoscope/driver/hid/base/Keyboard.h" // for Keyboard +#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl +#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb namespace kaleidoscope { namespace plugin { diff --git a/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/MouseKeys.cpp b/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/MouseKeys.cpp index 54c1ad0fc5..7eeb26433a 100644 --- a/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/MouseKeys.cpp +++ b/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/MouseKeys.cpp @@ -20,16 +20,16 @@ #include // for Focus, FocusSerial #include // for uint8_t, uint16_t, int8_t -#include "kaleidoscope/KeyEvent.h" // for KeyEvent -#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ -#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps:... +#include "kaleidoscope/KeyEvent.h" // for KeyEvent +#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ +#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps:... #include "kaleidoscope/driver/hid/base/AbsoluteMouse.h" // for AbsoluteMouse #include "kaleidoscope/driver/hid/base/Mouse.h" // for Mouse -#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventH... -#include "kaleidoscope/key_defs.h" // for Key, SYNTHETIC -#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn -#include "kaleidoscope/plugin/mousekeys/MouseKeyDefs.h" // for KEY_MOUSE_BUTTON, KEY_MOUS... -#include "kaleidoscope/plugin/mousekeys/MouseWrapper.h" // for MouseWrapper, WARP_DOWN +#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventH... +#include "kaleidoscope/key_defs.h" // for Key, SYNTHETIC +#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn +#include "kaleidoscope/plugin/mousekeys/MouseKeyDefs.h" // for KEY_MOUSE_BUTTON, KEY_MOUS... +#include "kaleidoscope/plugin/mousekeys/MouseWrapper.h" // for MouseWrapper, WARP_DOWN namespace kaleidoscope { namespace plugin { diff --git a/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/mousekeys/MouseWrapper.cpp b/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/mousekeys/MouseWrapper.cpp index 752e82e1f4..c3e5d1a3e1 100644 --- a/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/mousekeys/MouseWrapper.cpp +++ b/plugins/Kaleidoscope-MouseKeys/src/kaleidoscope/plugin/mousekeys/MouseWrapper.cpp @@ -19,8 +19,8 @@ #include // for uint16_t, uint8_t -#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ -#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps:... +#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ +#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps:... #include "kaleidoscope/driver/hid/base/AbsoluteMouse.h" // for AbsoluteMouse namespace kaleidoscope { diff --git a/plugins/Kaleidoscope-USB-Quirks/src/kaleidoscope/plugin/USB-Quirks.cpp b/plugins/Kaleidoscope-USB-Quirks/src/kaleidoscope/plugin/USB-Quirks.cpp index 48c80e7e5a..386d560443 100644 --- a/plugins/Kaleidoscope-USB-Quirks/src/kaleidoscope/plugin/USB-Quirks.cpp +++ b/plugins/Kaleidoscope-USB-Quirks/src/kaleidoscope/plugin/USB-Quirks.cpp @@ -20,8 +20,8 @@ #include // for delay #include // for uint8_t -#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ -#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID +#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ +#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID #include "kaleidoscope/driver/hid/base/Keyboard.h" // for Keyboard namespace kaleidoscope { diff --git a/src/kaleidoscope/Runtime.cpp b/src/kaleidoscope/Runtime.cpp index 7c9293682c..a78d24dede 100644 --- a/src/kaleidoscope/Runtime.cpp +++ b/src/kaleidoscope/Runtime.cpp @@ -19,13 +19,13 @@ #include // for millis #include // for HardwareSerial -#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr... -#include "kaleidoscope/KeyEvent.h" // for KeyEvent -#include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys -#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID +#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr... +#include "kaleidoscope/KeyEvent.h" // for KeyEvent +#include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys +#include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID #include "kaleidoscope/driver/hid/base/Keyboard.h" // for Keyboard -#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff, keyToggledOn -#include "kaleidoscope/layers.h" // for Layer, Layer_ +#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff, keyToggledOn +#include "kaleidoscope/layers.h" // for Layer, Layer_ namespace kaleidoscope {