From 610c0a0041814f4930821c55ee653f576cfa398a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 16 Oct 2018 17:30:40 +0200 Subject: [PATCH] Drop k/p/LEDControl/BootAnimation This boot animation has not been used for a long time, and chances are, noone even noticed its here. It's a neat thing, but gets old very fast, and locks up the keyboard during the animation. Considering these, lets drop it. Fixes #366. Signed-off-by: Gergely Nagy --- .../plugin/LEDControl/BootAnimation.cpp | 51 ------------------- .../plugin/LEDControl/BootAnimation.h | 19 ------- 2 files changed, 70 deletions(-) delete mode 100644 src/kaleidoscope/plugin/LEDControl/BootAnimation.cpp delete mode 100644 src/kaleidoscope/plugin/LEDControl/BootAnimation.h diff --git a/src/kaleidoscope/plugin/LEDControl/BootAnimation.cpp b/src/kaleidoscope/plugin/LEDControl/BootAnimation.cpp deleted file mode 100644 index 2e7c0ba7..00000000 --- a/src/kaleidoscope/plugin/LEDControl/BootAnimation.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* Kaleidoscope-LEDControl - LED control plugin for Kaleidoscope - * Copyright (C) 2017-2018 Keyboard.io, Inc. - * - * 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, version 3. - * - * 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 "kaleidoscope/plugin/LEDControl/BootAnimation.h" -#include "Kaleidoscope-LEDControl.h" - -#ifdef ARDUINO_AVR_MODEL01 -static void -type_letter(uint8_t letter) { - LEDControl.setCrgbAt(letter, {255, 0, 0}); - LEDControl.syncLeds(); - delay(250); - LEDControl.setCrgbAt(letter, {0, 0, 0}); - LEDControl.syncLeds(); - delay(10); -} -#endif - -void -bootAnimation(void) { -#ifdef ARDUINO_AVR_MODEL01 - LEDControl.set_all_leds_to(0, 0, 0); - type_letter(LED_K); - type_letter(LED_E); - type_letter(LED_Y); - type_letter(LED_B); - type_letter(LED_O); - type_letter(LED_A); - type_letter(LED_R); - type_letter(LED_D); - type_letter(LED_I); - type_letter(LED_O); - type_letter(LED_SPACE); - type_letter(LED_0); - type_letter(LED_PERIOD); - type_letter(LED_9); -#endif -} diff --git a/src/kaleidoscope/plugin/LEDControl/BootAnimation.h b/src/kaleidoscope/plugin/LEDControl/BootAnimation.h deleted file mode 100644 index 5da98af2..00000000 --- a/src/kaleidoscope/plugin/LEDControl/BootAnimation.h +++ /dev/null @@ -1,19 +0,0 @@ -/* Kaleidoscope-LEDControl - LED control plugin for Kaleidoscope - * Copyright (C) 2017-2018 Keyboard.io, Inc. - * - * 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, version 3. - * - * 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 . - */ - -#pragma once - -void bootAnimation(void);