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_);
}
}
}
} // namespace plugin
} // namespace kaleidoscope
kaleidoscope::plugin::ColormapEffect ColormapEffect;

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

@ -110,8 +110,8 @@ uint8_t Cycle::toModFlag(uint8_t keyCode) {
}
}
}
}
} // namespace plugin
} // namespace kaleidoscope
__attribute__((weak))
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 current_modifier_flags_;
};
}
}
} // namespace plugin
} // namespace kaleidoscope
void cycleAction(Key previous_key, uint8_t cycle_count);

@ -58,8 +58,8 @@ EventHandlerResult CycleTimeReport::afterEachCycle() {
return EventHandlerResult::OK;
}
}
}
} // namespace plugin
} // namespace kaleidoscope
__attribute__((weak)) void cycleTimeReport(void) {
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 uint32_t loop_start_time_;
};
}
}
} // namespace plugin
} // namespace kaleidoscope
void cycleTimeReport(void);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -223,13 +223,12 @@ class Raise: public kaleidoscope::device::Base<RaiseProps> {
} settings;
};
}
}
} // namespace dygma
} // namespace device
typedef kaleidoscope::device::dygma::Raise Device;
}
} // namespace kaleidoscope
#define PER_KEY_DATA(dflt, \
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;
}
}
}
}
}
} // namespace raise
} // namespace dygma
} // namespace device
} // namespace kaleidoscope
kaleidoscope::device::dygma::raise::Focus RaiseFocus;

@ -32,10 +32,10 @@ class Focus : public kaleidoscope::Plugin {
EventHandlerResult onFocusEvent(const char *command);
};
}
}
}
}
} // namespace raise
} // namespace dygma
} // namespace device
} // namespace kaleidoscope
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));
}
}
}
}
}
} // namespace raise
} // namespace dygma
} // namespace device
} // namespace kaleidoscope
#endif

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

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

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

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

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

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

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

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

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

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

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

@ -217,8 +217,8 @@ void Imago::setup() {
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
}
}
}
} // namespace keyboardio
} // namespace device
} // namespace kaleidoscope
#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, \
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)
}
} // namespace kaleidoscope
#endif

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

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

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

@ -163,7 +163,7 @@ class Model100 : public kaleidoscope::device::Base<Model100Props> {
EXPORT_DEVICE(kaleidoscope::device::keyboardio::Model100)
}
} // namespace kaleidoscope
#define PER_KEY_DATA_STACKED(dflt, \
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, \
R3C0, R3C1, R3C2, R3C3, R3C4, R3C5, R3C6, R3C7, R3C8, R3C9, R3C10, R3C11
}
}
} // namespace olkb
} // namespace device
EXPORT_DEVICE(kaleidoscope::device::olkb::Planck)
}
} // namespace kaleidoscope
#endif

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -57,7 +57,8 @@ class AlphaSquareEffect : public Plugin,
friend class AlphaSquareEffect;
};
};
}
}
} // namespace plugin
} // namespace kaleidoscope
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, 1, 0,
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;
}
}
}
} // namespace plugin
} // namespace kaleidoscope
kaleidoscope::plugin::LEDPaletteTheme LEDPaletteTheme;

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -96,8 +96,8 @@ void LEDRainbowWaveEffect::update_delay(byte delay) {
rainbow_update_delay = delay;
}
}
}
} // namespace plugin
} // namespace kaleidoscope
kaleidoscope::plugin::LEDRainbowEffect LEDRainbowEffect;
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_value = 50;
};
}
}
} // namespace plugin
} // namespace kaleidoscope
extern kaleidoscope::plugin::LEDRainbowEffect LEDRainbowEffect;
extern kaleidoscope::plugin::LEDRainbowWaveEffect LEDRainbowWaveEffect;

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

@ -58,5 +58,6 @@ class LEDSolidColor : public Plugin,
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 esc_color_;
};
}
}
} // namespace plugin
} // namespace kaleidoscope

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save