Merge pull request #1141 from gedankenexperimenter/namespace-block-comments

Standardize namespace block closing comments
pull/1069/merge
Jesse Vincent 3 years ago committed by GitHub
commit a273b47ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,7 @@ EventHandlerResult ColormapEffect::onFocusEvent(const char *command) {
map_base_, max_layers_); map_base_, max_layers_);
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::ColormapEffect ColormapEffect; kaleidoscope::plugin::ColormapEffect ColormapEffect;

@ -67,7 +67,8 @@ class ColormapEffect : public Plugin,
static uint8_t max_layers_; static uint8_t max_layers_;
static uint16_t map_base_; static uint16_t map_base_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::ColormapEffect ColormapEffect; extern kaleidoscope::plugin::ColormapEffect ColormapEffect;

@ -110,8 +110,8 @@ uint8_t Cycle::toModFlag(uint8_t keyCode) {
} }
} }
} } // namespace plugin
} } // namespace kaleidoscope
__attribute__((weak)) __attribute__((weak))
void cycleAction(Key previous_key, uint8_t cycle_count) { void cycleAction(Key previous_key, uint8_t cycle_count) {

@ -53,8 +53,9 @@ class Cycle : public kaleidoscope::Plugin {
static uint8_t cycle_count_; static uint8_t cycle_count_;
static uint8_t current_modifier_flags_; static uint8_t current_modifier_flags_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
void cycleAction(Key previous_key, uint8_t cycle_count); void cycleAction(Key previous_key, uint8_t cycle_count);

@ -58,8 +58,8 @@ EventHandlerResult CycleTimeReport::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
__attribute__((weak)) void cycleTimeReport(void) { __attribute__((weak)) void cycleTimeReport(void) {
Focus.send(Focus.COMMENT, F("average loop time:"), CycleTimeReport.average_loop_time, Focus.send(Focus.COMMENT, F("average loop time:"), CycleTimeReport.average_loop_time,

@ -38,8 +38,9 @@ class CycleTimeReport : public kaleidoscope::Plugin {
static uint16_t last_report_time_; static uint16_t last_report_time_;
static uint32_t loop_start_time_; static uint32_t loop_start_time_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
void cycleTimeReport(void); void cycleTimeReport(void);

@ -140,7 +140,7 @@ void DynamicTapDance::setup(uint8_t dynamic_offset, uint16_t size) {
updateDynamicTapDanceCache(); updateDynamicTapDanceCache();
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::DynamicTapDance DynamicTapDance; kaleidoscope::plugin::DynamicTapDance DynamicTapDance;

@ -50,7 +50,7 @@ class DynamicTapDance: public kaleidoscope::Plugin {
static void updateDynamicTapDanceCache(); static void updateDynamicTapDanceCache();
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::DynamicTapDance DynamicTapDance; extern kaleidoscope::plugin::DynamicTapDance DynamicTapDance;

@ -127,7 +127,7 @@ EventHandlerResult EEPROMKeymapProgrammer::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::EEPROMKeymapProgrammer EEPROMKeymapProgrammer; kaleidoscope::plugin::EEPROMKeymapProgrammer EEPROMKeymapProgrammer;

@ -57,7 +57,8 @@ class EEPROMKeymapProgrammer : public kaleidoscope::Plugin {
static uint16_t update_position_; // layer, row, col static uint16_t update_position_; // layer, row, col
static Key new_key_; static Key new_key_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::EEPROMKeymapProgrammer EEPROMKeymapProgrammer; extern kaleidoscope::plugin::EEPROMKeymapProgrammer EEPROMKeymapProgrammer;

@ -163,7 +163,7 @@ EventHandlerResult EEPROMKeymap::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::EEPROMKeymap EEPROMKeymap; kaleidoscope::plugin::EEPROMKeymap EEPROMKeymap;

@ -59,7 +59,8 @@ class EEPROMKeymap : public kaleidoscope::Plugin {
static void printKey(Key key); static void printKey(Key key);
static void dumpKeymap(uint8_t layers, Key(*getkey)(uint8_t, KeyAddr)); static void dumpKeymap(uint8_t layers, Key(*getkey)(uint8_t, KeyAddr));
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::EEPROMKeymap EEPROMKeymap; extern kaleidoscope::plugin::EEPROMKeymap EEPROMKeymap;

@ -263,8 +263,8 @@ EventHandlerResult FocusEEPROMCommand::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::EEPROMSettings EEPROMSettings; kaleidoscope::plugin::EEPROMSettings EEPROMSettings;
kaleidoscope::plugin::FocusSettingsCommand FocusSettingsCommand; kaleidoscope::plugin::FocusSettingsCommand FocusSettingsCommand;

@ -94,8 +94,9 @@ class FocusEEPROMCommand : public kaleidoscope::Plugin {
EventHandlerResult onFocusEvent(const char *command); EventHandlerResult onFocusEvent(const char *command);
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::EEPROMSettings EEPROMSettings; extern kaleidoscope::plugin::EEPROMSettings EEPROMSettings;
extern kaleidoscope::plugin::FocusSettingsCommand FocusSettingsCommand; extern kaleidoscope::plugin::FocusSettingsCommand FocusSettingsCommand;

@ -56,7 +56,7 @@ EventHandlerResult EscapeOneShot::onKeyEvent(KeyEvent &event) {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::EscapeOneShot EscapeOneShot; kaleidoscope::plugin::EscapeOneShot EscapeOneShot;

@ -65,8 +65,8 @@ class EscapeOneShotConfig : public Plugin {
static uint16_t settings_base_; static uint16_t settings_base_;
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::EscapeOneShot EscapeOneShot; extern kaleidoscope::plugin::EscapeOneShot EscapeOneShot;
extern kaleidoscope::plugin::EscapeOneShotConfig EscapeOneShotConfig; extern kaleidoscope::plugin::EscapeOneShotConfig EscapeOneShotConfig;

@ -129,7 +129,7 @@ EventHandlerResult FingerPainter::onFocusEvent(const char *command) {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::FingerPainter FingerPainter; kaleidoscope::plugin::FingerPainter FingerPainter;

@ -50,7 +50,8 @@ class FingerPainter : public LEDMode {
static uint16_t color_base_; static uint16_t color_base_;
static bool edit_mode_; static bool edit_mode_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::FingerPainter FingerPainter; extern kaleidoscope::plugin::FingerPainter FingerPainter;

@ -69,8 +69,8 @@ EventHandlerResult FirmwareDump::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::FirmwareDump FirmwareDump; kaleidoscope::plugin::FirmwareDump FirmwareDump;

@ -41,8 +41,8 @@ class FirmwareDump : public kaleidoscope::Plugin {
uint16_t bootloader_size_; uint16_t bootloader_size_;
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::FirmwareDump FirmwareDump; extern kaleidoscope::plugin::FirmwareDump FirmwareDump;

@ -118,7 +118,7 @@ void FocusSerial::printBool(bool b) {
Runtime.serialPort().print((b) ? F("true") : F("false")); Runtime.serialPort().print((b) ? F("true") : F("false"));
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::FocusSerial Focus; kaleidoscope::plugin::FocusSerial Focus;

@ -108,7 +108,8 @@ class FocusSerial : public kaleidoscope::Plugin {
static uint8_t buf_cursor_; static uint8_t buf_cursor_;
static void printBool(bool b); static void printBool(bool b);
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::FocusSerial Focus; extern kaleidoscope::plugin::FocusSerial Focus;

@ -86,7 +86,7 @@ EventHandlerResult GhostInTheFirmware::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::GhostInTheFirmware GhostInTheFirmware; kaleidoscope::plugin::GhostInTheFirmware GhostInTheFirmware;

@ -45,7 +45,8 @@ class GhostInTheFirmware : public kaleidoscope::Plugin {
static uint16_t current_pos_; static uint16_t current_pos_;
static uint16_t start_time_; static uint16_t start_time_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::GhostInTheFirmware GhostInTheFirmware; extern kaleidoscope::plugin::GhostInTheFirmware GhostInTheFirmware;

@ -475,8 +475,8 @@ void Raise::settings::keyscanInterval(uint16_t interval) {
RaiseHands::keyscanInterval(interval); RaiseHands::keyscanInterval(interval);
} }
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -223,13 +223,12 @@ class Raise: public kaleidoscope::device::Base<RaiseProps> {
} settings; } settings;
}; };
} // namespace dygma
} } // namespace device
}
typedef kaleidoscope::device::dygma::Raise Device; typedef kaleidoscope::device::dygma::Raise Device;
} } // namespace kaleidoscope
#define PER_KEY_DATA(dflt, \ #define PER_KEY_DATA(dflt, \
r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, r0c9, r0c10, r0c11, r0c12, r0c13, r0c14, r0c15, \ r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, r0c9, r0c10, r0c11, r0c12, r0c13, r0c14, r0c15, \

@ -127,10 +127,10 @@ EventHandlerResult Focus::onFocusEvent(const char *command) {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
kaleidoscope::device::dygma::raise::Focus RaiseFocus; kaleidoscope::device::dygma::raise::Focus RaiseFocus;

@ -32,10 +32,10 @@ class Focus : public kaleidoscope::Plugin {
EventHandlerResult onFocusEvent(const char *command); EventHandlerResult onFocusEvent(const char *command);
}; };
} } // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
extern kaleidoscope::device::dygma::raise::Focus RaiseFocus; extern kaleidoscope::device::dygma::raise::Focus RaiseFocus;

@ -244,8 +244,8 @@ void RaiseSide::sendLEDBank(uint8_t bank) {
uint8_t result = twi_.writeTo(data, ELEMENTS(data)); uint8_t result = twi_.writeTo(data, ELEMENTS(data));
} }
} } // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -104,9 +104,9 @@ class RaiseSide {
int readRegister(uint8_t cmd); int readRegister(uint8_t cmd);
}; };
} } // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -77,9 +77,9 @@ class SideFlash : public kaleidoscope::Plugin {
} }
}; };
} } // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -90,10 +90,9 @@ void TWI::init(uint16_t clock_khz) {
Wire.setClock(clock_khz * 1000); Wire.setClock(clock_khz * 1000);
} }
} // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
}
#endif #endif

@ -44,8 +44,9 @@ class TWI {
uint8_t crc_errors_; uint8_t crc_errors_;
}; };
} } // namespace raise
} } // namespace dygma
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -210,9 +210,9 @@ uint8_t ErgoDox::pressedKeyswitchCount() {
return count; return count;
} }
} } // namespace ez
} } // namespace device
} } // namespace kaleidoscope
#endif #endif
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD

@ -134,11 +134,12 @@ class ErgoDox;
r0c11, r1c11, r2c11, r3c11, r4c11, r5c11, \ r0c11, r1c11, r2c11, r3c11, r4c11, r5c11, \
r0c12, r1c12, r2c12, r3c12, r4c12, r5c12, \ r0c12, r1c12, r2c12, r3c12, r4c12, r5c12, \
r0c13, r1c13, r2c13, r3c13, r4c13, dflt r0c13, r1c13, r2c13, r3c13, r4c13, dflt
}
} } // namespace ez
} // namespace device
EXPORT_DEVICE(kaleidoscope::device::ez::ErgoDox) EXPORT_DEVICE(kaleidoscope::device::ez::ErgoDox)
} } // namespace kaleidoscope
#endif #endif

@ -170,9 +170,9 @@ ErgoDoxScanner::reattachExpanderOnError() {
start_time = millis(); start_time = millis();
} }
} } // namespace ez
} } // namespace device
} } // namespace kaleidoscope
#endif #endif
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD

@ -50,8 +50,8 @@ class ErgoDoxScanner {
uint8_t initExpander(); uint8_t initExpander();
}; };
} } // namespace ez
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -73,11 +73,12 @@ class KBD4x;
R1C0, R1C1, R1C2, R1C3, R1C4, R1C5, R1C6, R1C7, R1C8, R1C9, R1C10, R1C11, \ R1C0, R1C1, R1C2, R1C3, R1C4, R1C5, R1C6, R1C7, R1C8, R1C9, R1C10, R1C11, \
R2C0, R2C1, R2C2, R2C3, R2C4, R2C5, R2C6, R2C7, R2C8, R2C9, R2C10, R2C11, \ R2C0, R2C1, R2C2, R2C3, R2C4, R2C5, R2C6, R2C7, R2C8, R2C9, R2C10, R2C11, \
R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C5, R3C7, R3C8, R3C9, R3C10, R3C11 R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C5, R3C7, R3C8, R3C9, R3C10, R3C11
}
} } // namespace kbdfans
} // namespace device
EXPORT_DEVICE(kaleidoscope::device::kbdfans::KBD4x) EXPORT_DEVICE(kaleidoscope::device::kbdfans::KBD4x)
} } // namespace kaleidoscope
#endif #endif

@ -59,9 +59,9 @@ ISR(TIMER1_OVF_vect) {
Runtime.device().keyScanner().do_scan_ = true; Runtime.device().keyScanner().do_scan_ = true;
} }
} } // namespace keyboardio
} } // namespace device
} } // namespace kaleidoscope
#endif #endif
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD

@ -88,11 +88,12 @@ class Atreus;
R1C0, R1C1, R1C2, R1C3, R1C4, XXX, XXX, R1C7, R1C8, R1C9, R1C10, R1C11, \ R1C0, R1C1, R1C2, R1C3, R1C4, XXX, XXX, R1C7, R1C8, R1C9, R1C10, R1C11, \
R2C0, R2C1, R2C2, R2C3, R2C4, R2C5, R2C6, R2C7, R2C8, R2C9, R2C10, R2C11, \ R2C0, R2C1, R2C2, R2C3, R2C4, R2C5, R2C6, R2C7, R2C8, R2C9, R2C10, R2C11, \
R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11 R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11
}
} } // namespace keyboardio
} // namespace device
EXPORT_DEVICE(kaleidoscope::device::keyboardio::Atreus) EXPORT_DEVICE(kaleidoscope::device::keyboardio::Atreus)
} } // namespace kaleidoscope
#endif #endif

@ -217,8 +217,8 @@ void Imago::setup() {
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
} } // namespace keyboardio
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -120,11 +120,11 @@ class Imago: public kaleidoscope::device::ATmega32U4Keyboard<ImagoProps> {
R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11, R3C12, R3C13, XXX, R3C15, \ R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11, R3C12, R3C13, XXX, R3C15, \
R4C0, R4C1, R4C2, R4C3, XXX, R4C5, R4C6, R4C7, R4C8, XXX, R4C10, R4C11, R4C12, R4C13, XXX, R4C15 R4C0, R4C1, R4C2, R4C3, XXX, R4C5, R4C6, R4C7, R4C8, XXX, R4C10, R4C11, R4C12, R4C13, XXX, R4C15
} } // namespace keyboardio
} } // namespace device
EXPORT_DEVICE(kaleidoscope::device::keyboardio::Imago) EXPORT_DEVICE(kaleidoscope::device::keyboardio::Imago)
} } // namespace kaleidoscope
#endif #endif

@ -257,7 +257,8 @@ void Model01::enableHardwareTestMode() {
#endif #endif
} } // namespace keyboardio
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -141,7 +141,7 @@ class Model01 : public kaleidoscope::device::ATmega32U4Keyboard<Model01Props> {
EXPORT_DEVICE(kaleidoscope::device::keyboardio::Model01) EXPORT_DEVICE(kaleidoscope::device::keyboardio::Model01)
} } // namespace kaleidoscope
#define PER_KEY_DATA_STACKED(dflt, \ #define PER_KEY_DATA_STACKED(dflt, \
r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, \ r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, \

@ -242,7 +242,8 @@ void Model100::enableHardwareTestMode() {
#endif #endif
} } // namespace keyboardio
} } // namespace device
} } // namespace kaleidoscope
#endif #endif

@ -163,7 +163,7 @@ class Model100 : public kaleidoscope::device::Base<Model100Props> {
EXPORT_DEVICE(kaleidoscope::device::keyboardio::Model100) EXPORT_DEVICE(kaleidoscope::device::keyboardio::Model100)
} } // namespace kaleidoscope
#define PER_KEY_DATA_STACKED(dflt, \ #define PER_KEY_DATA_STACKED(dflt, \
r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, \ r0c0, r0c1, r0c2, r0c3, r0c4, r0c5, r0c6, \

@ -67,11 +67,11 @@ class Planck;
R2C0, R2C1, R2C2, R2C3, R2C4, R2C5, R2C6, R2C7, R2C8, R2C9, R2C10, R2C11, \ R2C0, R2C1, R2C2, R2C3, R2C4, R2C5, R2C6, R2C7, R2C8, R2C9, R2C10, R2C11, \
R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11 R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11
} } // namespace olkb
} } // namespace device
EXPORT_DEVICE(kaleidoscope::device::olkb::Planck) EXPORT_DEVICE(kaleidoscope::device::olkb::Planck)
} } // namespace kaleidoscope
#endif #endif

@ -96,11 +96,11 @@ class Splitography;
r2c0 ,r2c1 ,r2c2 ,r2c3 ,r2c4 ,r2c5 ,r2c6 ,r2c7 ,r2c8 ,r2c9 ,r2c10 ,r2c11, \ r2c0 ,r2c1 ,r2c2 ,r2c3 ,r2c4 ,r2c5 ,r2c6 ,r2c7 ,r2c8 ,r2c9 ,r2c10 ,r2c11, \
dflt ,dflt ,dflt ,dflt ,r3c4 ,r3c5 ,r3c6 ,r3c7 ,dflt ,dflt ,dflt ,dflt dflt ,dflt ,dflt ,dflt ,r3c4 ,r3c5 ,r3c6 ,r3c7 ,dflt ,dflt ,dflt ,dflt
} } // namespace softhruf
} } // namespace device
EXPORT_DEVICE(kaleidoscope::device::softhruf::Splitography) EXPORT_DEVICE(kaleidoscope::device::softhruf::Splitography)
} } // namespace kaleidoscope
#endif #endif

@ -112,11 +112,12 @@ class Atreus;
R1C0, R1C1, R1C2, R1C3, R1C4, dflt, R1C7, R1C8, R1C9, R1C10, R1C11, \ R1C0, R1C1, R1C2, R1C3, R1C4, dflt, R1C7, R1C8, R1C9, R1C10, R1C11, \
R2C0, R2C1, R2C2, R2C3, R2C4, R3C5, R2C7, R2C8, R2C9, R2C10, R2C11, \ R2C0, R2C1, R2C2, R2C3, R2C4, R3C5, R2C7, R2C8, R2C9, R2C10, R2C11, \
R3C0, R3C1, R3C2, R3C3, R3C4, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11 R3C0, R3C1, R3C2, R3C3, R3C4, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11
}
} } // namespace technomancy
} // namespace device
EXPORT_DEVICE(kaleidoscope::device::technomancy::Atreus) EXPORT_DEVICE(kaleidoscope::device::technomancy::Atreus)
} } // namespace kaleidoscope
#endif #endif

@ -132,7 +132,7 @@ void HardwareTestMode::runTests() {
testMatrix(); testMatrix();
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::HardwareTestMode HardwareTestMode; kaleidoscope::plugin::HardwareTestMode HardwareTestMode;

@ -45,7 +45,8 @@ class HardwareTestMode : public kaleidoscope::Plugin {
static void waitForKeypress(); static void waitForKeypress();
static void setLeds(cRGB color); static void setLeds(cRGB color);
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::HardwareTestMode HardwareTestMode; extern kaleidoscope::plugin::HardwareTestMode HardwareTestMode;

@ -241,7 +241,7 @@ void Heatmap::TransientLEDMode::update(void) {
} }
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::Heatmap HeatmapEffect; kaleidoscope::plugin::Heatmap HeatmapEffect;

@ -75,7 +75,8 @@ class Heatmap : public Plugin,
friend class Heatmap; friend class Heatmap;
}; };
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::Heatmap HeatmapEffect; extern kaleidoscope::plugin::Heatmap HeatmapEffect;

@ -46,7 +46,7 @@ EventHandlerResult FocusHostOSCommand::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::FocusHostOSCommand FocusHostOSCommand; kaleidoscope::plugin::FocusHostOSCommand FocusHostOSCommand;

@ -28,7 +28,8 @@ class FocusHostOSCommand : public kaleidoscope::Plugin {
FocusHostOSCommand() {} FocusHostOSCommand() {}
EventHandlerResult onFocusEvent(const char *command); EventHandlerResult onFocusEvent(const char *command);
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::FocusHostOSCommand FocusHostOSCommand; extern kaleidoscope::plugin::FocusHostOSCommand FocusHostOSCommand;

@ -49,7 +49,7 @@ void HostOS::os(hostos::Type new_os) {
Runtime.storage().commit(); Runtime.storage().commit();
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::HostOS HostOS; kaleidoscope::plugin::HostOS HostOS;

@ -54,9 +54,11 @@ class HostOS : public kaleidoscope::Plugin {
uint16_t eeprom_slice_; uint16_t eeprom_slice_;
bool is_configured_ = false; bool is_configured_ = false;
}; };
}
} // namespace plugin
namespace hostos = plugin::hostos; namespace hostos = plugin::hostos;
}
} // namespace kaleidoscope
extern kaleidoscope::plugin::HostOS HostOS; extern kaleidoscope::plugin::HostOS HostOS;

@ -57,8 +57,8 @@ EventHandlerResult HostPowerManagement::beforeEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
__attribute__((weak)) void hostPowerManagementEventHandler(kaleidoscope::plugin::HostPowerManagement::Event event) { __attribute__((weak)) void hostPowerManagementEventHandler(kaleidoscope::plugin::HostPowerManagement::Event event) {
} }

@ -38,12 +38,13 @@ class HostPowerManagement : public kaleidoscope::Plugin {
static bool was_suspended_; static bool was_suspended_;
static bool initial_suspend_; static bool initial_suspend_;
}; };
}
} // namespace plugin
// Backwards compatibility // Backwards compatibility
typedef plugin::HostPowerManagement HostPowerManagement; typedef plugin::HostPowerManagement HostPowerManagement;
} } // namespace kaleidoscope
void hostPowerManagementEventHandler(kaleidoscope::plugin::HostPowerManagement::Event event); void hostPowerManagementEventHandler(kaleidoscope::plugin::HostPowerManagement::Event event);

@ -116,8 +116,8 @@ EventHandlerResult PersistentIdleLEDs::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::IdleLEDs IdleLEDs; kaleidoscope::plugin::IdleLEDs IdleLEDs;
kaleidoscope::plugin::PersistentIdleLEDs PersistentIdleLEDs; kaleidoscope::plugin::PersistentIdleLEDs PersistentIdleLEDs;

@ -55,8 +55,8 @@ class PersistentIdleLEDs : public IdleLEDs {
static uint16_t settings_base_; static uint16_t settings_base_;
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::IdleLEDs IdleLEDs; extern kaleidoscope::plugin::IdleLEDs IdleLEDs;
extern kaleidoscope::plugin::PersistentIdleLEDs PersistentIdleLEDs; extern kaleidoscope::plugin::PersistentIdleLEDs PersistentIdleLEDs;

@ -72,7 +72,7 @@ EventHandlerResult LEDActiveLayerColorEffect::onLayerChange() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::LEDActiveLayerColorEffect LEDActiveLayerColorEffect; kaleidoscope::plugin::LEDActiveLayerColorEffect LEDActiveLayerColorEffect;

@ -67,7 +67,8 @@ class LEDActiveLayerColorEffect : public Plugin,
static const cRGB *colormap_; static const cRGB *colormap_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::LEDActiveLayerColorEffect LEDActiveLayerColorEffect; extern kaleidoscope::plugin::LEDActiveLayerColorEffect LEDActiveLayerColorEffect;

@ -56,7 +56,8 @@ class ActiveModColorEffect : public kaleidoscope::Plugin {
static cRGB oneshot_color_; static cRGB oneshot_color_;
static cRGB sticky_color_; static cRGB sticky_color_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::ActiveModColorEffect ActiveModColorEffect; extern kaleidoscope::plugin::ActiveModColorEffect ActiveModColorEffect;

@ -147,7 +147,7 @@ bool AlphaSquare::isSymbolPart(uint16_t symbol,
return false; return false;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::AlphaSquare AlphaSquare; kaleidoscope::plugin::AlphaSquare AlphaSquare;

@ -91,7 +91,7 @@ class AlphaSquare : public kaleidoscope::Plugin {
static cRGB color; static cRGB color;
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::AlphaSquare AlphaSquare; extern kaleidoscope::plugin::AlphaSquare AlphaSquare;

@ -111,7 +111,7 @@ EventHandlerResult AlphaSquareEffect::onKeyEvent(KeyEvent &event) {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::AlphaSquareEffect AlphaSquareEffect; kaleidoscope::plugin::AlphaSquareEffect AlphaSquareEffect;

@ -57,7 +57,8 @@ class AlphaSquareEffect : public Plugin,
friend class AlphaSquareEffect; friend class AlphaSquareEffect;
}; };
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::AlphaSquareEffect AlphaSquareEffect; extern kaleidoscope::plugin::AlphaSquareEffect AlphaSquareEffect;

@ -31,8 +31,8 @@ static constexpr uint16_t Lambda = SYM4x4(1, 0, 0, 0,
0, 1, 0, 0, 0, 1, 0, 0,
0, 1, 1, 0, 0, 1, 1, 0,
1, 0, 0, 1); 1, 0, 0, 1);
}
}
}
} } // namespace symbols
} // namespace alpha_square
} // namespace plugin
} // namespace kaleidoscope

@ -193,7 +193,7 @@ EventHandlerResult LEDPaletteTheme::themeFocusEvent(const char *command,
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::LEDPaletteTheme LEDPaletteTheme; kaleidoscope::plugin::LEDPaletteTheme LEDPaletteTheme;

@ -50,7 +50,7 @@ class LEDPaletteTheme : public kaleidoscope::Plugin {
static uint16_t palette_base_; static uint16_t palette_base_;
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::LEDPaletteTheme LEDPaletteTheme; extern kaleidoscope::plugin::LEDPaletteTheme LEDPaletteTheme;

@ -158,9 +158,8 @@ cRGB Rainbow::compute(uint8_t *step) {
return hsvToRgb(255 - *step, 255, *step); return hsvToRgb(255 - *step, 255, *step);
} }
} } // namespace stalker
} } // namespace plugin
} // namespace kaleidoscope
}
kaleidoscope::plugin::StalkerEffect StalkerEffect; kaleidoscope::plugin::StalkerEffect StalkerEffect;

@ -101,8 +101,8 @@ class Rainbow : public StalkerEffect::ColorComputer {
cRGB compute(uint8_t *step) final; cRGB compute(uint8_t *step) final;
}; };
} } // namespace stalker
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::StalkerEffect StalkerEffect; extern kaleidoscope::plugin::StalkerEffect StalkerEffect;

@ -237,8 +237,8 @@ void WavepoolEffect::TransientLEDMode::update(void) {
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::WavepoolEffect WavepoolEffect; kaleidoscope::plugin::WavepoolEffect WavepoolEffect;

@ -82,8 +82,8 @@ class WavepoolEffect : public Plugin,
}; };
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::WavepoolEffect WavepoolEffect; extern kaleidoscope::plugin::WavepoolEffect WavepoolEffect;

@ -94,7 +94,7 @@ EventHandlerResult BootAnimationEffect::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::BootAnimationEffect BootAnimationEffect; kaleidoscope::plugin::BootAnimationEffect BootAnimationEffect;

@ -43,7 +43,8 @@ class BootAnimationEffect : public kaleidoscope::Plugin {
static uint16_t start_time_; static uint16_t start_time_;
static uint8_t current_index_; static uint8_t current_index_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::BootAnimationEffect BootAnimationEffect; extern kaleidoscope::plugin::BootAnimationEffect BootAnimationEffect;

@ -91,7 +91,7 @@ EventHandlerResult BootGreetingEffect::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::BootGreetingEffect BootGreetingEffect; kaleidoscope::plugin::BootGreetingEffect BootGreetingEffect;

@ -45,7 +45,8 @@ class BootGreetingEffect : public kaleidoscope::Plugin {
static KeyAddr key_addr_; static KeyAddr key_addr_;
static uint16_t start_time; static uint16_t start_time;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::BootGreetingEffect BootGreetingEffect; extern kaleidoscope::plugin::BootGreetingEffect BootGreetingEffect;

@ -36,7 +36,8 @@ void LEDBreatheEffect::TransientLEDMode::update(void) {
cRGB color = breath_compute(parent_->hue, parent_->saturation); cRGB color = breath_compute(parent_->hue, parent_->saturation);
::LEDControl.set_all_leds_to(color); ::LEDControl.set_all_leds_to(color);
} }
}
} } // namespace plugin
} // namespace kaleidoscope
kaleidoscope::plugin::LEDBreatheEffect LEDBreatheEffect; kaleidoscope::plugin::LEDBreatheEffect LEDBreatheEffect;

@ -55,7 +55,8 @@ class LEDBreatheEffect : public Plugin,
uint8_t last_update_ = 0; uint8_t last_update_ = 0;
}; };
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::LEDBreatheEffect LEDBreatheEffect; extern kaleidoscope::plugin::LEDBreatheEffect LEDBreatheEffect;

@ -69,7 +69,7 @@ void LEDChaseEffect::TransientLEDMode::update(void) {
::LEDControl.setCrgbAt(pos2, CRGB(0, 0, 255)); ::LEDControl.setCrgbAt(pos2, CRGB(0, 0, 255));
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::LEDChaseEffect LEDChaseEffect; kaleidoscope::plugin::LEDChaseEffect LEDChaseEffect;

@ -72,7 +72,8 @@ class LEDChaseEffect : public Plugin,
uint8_t distance_ = 5; uint8_t distance_ = 5;
uint8_t update_delay_ = 150; uint8_t update_delay_ = 150;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::LEDChaseEffect LEDChaseEffect; extern kaleidoscope::plugin::LEDChaseEffect LEDChaseEffect;

@ -96,8 +96,8 @@ void LEDRainbowWaveEffect::update_delay(byte delay) {
rainbow_update_delay = delay; rainbow_update_delay = delay;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::LEDRainbowEffect LEDRainbowEffect; kaleidoscope::plugin::LEDRainbowEffect LEDRainbowEffect;
kaleidoscope::plugin::LEDRainbowWaveEffect LEDRainbowWaveEffect; kaleidoscope::plugin::LEDRainbowWaveEffect LEDRainbowWaveEffect;

@ -112,8 +112,9 @@ class LEDRainbowWaveEffect : public Plugin, public LEDModeInterface {
uint8_t rainbow_update_delay = 40; // delay between updates (ms) uint8_t rainbow_update_delay = 40; // delay between updates (ms)
uint8_t rainbow_value = 50; uint8_t rainbow_value = 50;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::LEDRainbowEffect LEDRainbowEffect; extern kaleidoscope::plugin::LEDRainbowEffect LEDRainbowEffect;
extern kaleidoscope::plugin::LEDRainbowWaveEffect LEDRainbowWaveEffect; extern kaleidoscope::plugin::LEDRainbowWaveEffect LEDRainbowWaveEffect;

@ -36,5 +36,5 @@ void LEDSolidColor::TransientLEDMode::refreshAt(KeyAddr key_addr) {
parent_->b_)); parent_->b_));
} }
} } // namespace plugin
} } // namespace kaleidoscope

@ -58,5 +58,6 @@ class LEDSolidColor : public Plugin,
uint8_t r_, g_, b_; uint8_t r_, g_, b_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope

@ -62,5 +62,5 @@ void TriColor::TransientLEDMode::update(void) {
} }
} }
} } // namespace plugin
} } // namespace kaleidoscope

@ -56,5 +56,6 @@ class TriColor : public Plugin,
cRGB mod_color_; cRGB mod_color_;
cRGB esc_color_; cRGB esc_color_;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope

@ -85,7 +85,7 @@ EventHandlerResult LayerFocus::onFocusEvent(const char *command) {
return EventHandlerResult::EVENT_CONSUMED; return EventHandlerResult::EVENT_CONSUMED;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::LayerFocus LayerFocus; kaleidoscope::plugin::LayerFocus LayerFocus;

@ -32,7 +32,7 @@ class LayerFocus: public kaleidoscope::Plugin {
EventHandlerResult onFocusEvent(const char *command); EventHandlerResult onFocusEvent(const char *command);
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::LayerFocus LayerFocus; extern kaleidoscope::plugin::LayerFocus LayerFocus;

@ -168,7 +168,7 @@ EventHandlerResult Leader::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::Leader Leader; kaleidoscope::plugin::Leader Leader;

@ -100,8 +100,8 @@ class Leader : public kaleidoscope::Plugin {
static int8_t lookup(void); static int8_t lookup(void);
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::Leader Leader; extern kaleidoscope::plugin::Leader Leader;

@ -109,6 +109,6 @@ class Macros : public kaleidoscope::Plugin {
}; };
} // namespace plugin } // namespace plugin
} // namespace kaleidosocpe } // namespace kaleidoscope
extern kaleidoscope::plugin::Macros Macros; extern kaleidoscope::plugin::Macros Macros;

@ -65,7 +65,7 @@ EventHandlerResult MagicCombo::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::MagicCombo MagicCombo; kaleidoscope::plugin::MagicCombo MagicCombo;

@ -62,9 +62,9 @@ class MagicCombo : public kaleidoscope::Plugin {
namespace magiccombo { namespace magiccombo {
extern const MagicCombo::Combo combos[]; extern const MagicCombo::Combo combos[];
extern const uint8_t combos_length; extern const uint8_t combos_length;
}
} } // namespace magiccombo
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::MagicCombo MagicCombo; extern kaleidoscope::plugin::MagicCombo MagicCombo;

@ -81,7 +81,7 @@ EventHandlerResult NumPad::afterEachCycle() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::NumPad NumPad; kaleidoscope::plugin::NumPad NumPad;

@ -45,7 +45,8 @@ class NumPad : public kaleidoscope::Plugin {
static KeyAddr numpadLayerToggleKeyAddr; static KeyAddr numpadLayerToggleKeyAddr;
static bool numpadActive; static bool numpadActive;
}; };
}
} } // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::NumPad NumPad; extern kaleidoscope::plugin::NumPad NumPad;

@ -58,7 +58,7 @@ EventHandlerResult PersistentLEDMode::onLEDModeChange() {
return EventHandlerResult::OK; return EventHandlerResult::OK;
} }
} } // namespace plugin
} } // namespace kaleidoscope
kaleidoscope::plugin::PersistentLEDMode PersistentLEDMode; kaleidoscope::plugin::PersistentLEDMode PersistentLEDMode;

@ -37,7 +37,7 @@ class PersistentLEDMode: public kaleidoscope::Plugin {
static uint8_t cached_mode_index_; static uint8_t cached_mode_index_;
}; };
} } // namespace plugin
} } // namespace kaleidoscope
extern kaleidoscope::plugin::PersistentLEDMode PersistentLEDMode; extern kaleidoscope::plugin::PersistentLEDMode PersistentLEDMode;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save