/*********************************************************************** * A firmware Sketch for the Keyboardio Model 01 * Copyright © 2019 Guilhem Moulin * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at * your option) any later version. * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . **********************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include "Macros.h" #include "TapDance.h" #include "keymap.h" KALEIDOSCOPE_INIT_PLUGINS( EEPROMSettings , TapDance , LEDControl , IdleLEDs , LEDPaletteTheme , ColormapEffect , MouseKeys , OneShot , EscapeOneShot , ActiveModColorEffect , Macros ); void setup() { Kaleidoscope.setup(); ColormapEffect.max_layers(LAYER_MAX+1); ColormapEffect.activate(); MouseWrapper.speedLimit = 64; MouseKeys.speed = 15; MouseKeys.accelDelay = 35; IdleLEDs.idle_time_limit = 60; } void loop() { Kaleidoscope.loop(); if (cancelOneShot) { OneShot.cancel(); cancelOneShot = false; } }