aboutsummaryrefslogtreecommitdiff
path: root/keyboards/horrortroll
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-04-05 14:48:21 +1100
committerGitHub <noreply@github.com>2024-04-05 14:48:21 +1100
commita14c03b96e75212d042621f4c68ccbecb7ee9901 (patch)
tree6a2de0f8d23d238e99760c5d00d5a90ea10f60fd /keyboards/horrortroll
parentf8a7a6848d737b01dcb5843503bcabcdd68cdb01 (diff)
Remove more unnecessary `quantum.h` includes (#23402)
Diffstat (limited to 'keyboards/horrortroll')
-rw-r--r--keyboards/horrortroll/handwired_k552/lib/bongocat.c9
-rw-r--r--keyboards/horrortroll/handwired_k552/lib/galaxy.c4
-rw-r--r--keyboards/horrortroll/handwired_k552/lib/logo.c4
-rw-r--r--keyboards/horrortroll/lemon40/lib/bongocat.c9
4 files changed, 20 insertions, 6 deletions
diff --git a/keyboards/horrortroll/handwired_k552/lib/bongocat.c b/keyboards/horrortroll/handwired_k552/lib/bongocat.c
index 6510223b22..70699ff3cd 100644
--- a/keyboards/horrortroll/handwired_k552/lib/bongocat.c
+++ b/keyboards/horrortroll/handwired_k552/lib/bongocat.c
@@ -14,7 +14,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "bongocat.h"
+#include <stdlib.h>
+#include "oled_driver.h"
+#include "progmem.h"
+#include "timer.h"
+#include "wpm.h"
+#include "util.h"
// WPM-responsive animation stuff here
# define IDLE_FRAMES 5
@@ -28,7 +34,6 @@
# define ANIM_FRAME_RATIO 2.5 // how aggressively animation speeds up with wpm
// #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024
-# define MAX(x, y) (((x) > (y)) ? (x) : (y)) // Math.max macro
uint32_t curr_anim_duration = 0; // variable animation duration
uint32_t bongo_timer = 0;
diff --git a/keyboards/horrortroll/handwired_k552/lib/galaxy.c b/keyboards/horrortroll/handwired_k552/lib/galaxy.c
index 04885b8085..6578295c6f 100644
--- a/keyboards/horrortroll/handwired_k552/lib/galaxy.c
+++ b/keyboards/horrortroll/handwired_k552/lib/galaxy.c
@@ -14,7 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "galaxy.h"
+#include "oled_driver.h"
+#include "progmem.h"
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024
diff --git a/keyboards/horrortroll/handwired_k552/lib/logo.c b/keyboards/horrortroll/handwired_k552/lib/logo.c
index 3931fdf455..f3ae2f8a06 100644
--- a/keyboards/horrortroll/handwired_k552/lib/logo.c
+++ b/keyboards/horrortroll/handwired_k552/lib/logo.c
@@ -14,7 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "logo.h"
+#include "oled_driver.h"
+#include "progmem.h"
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024
diff --git a/keyboards/horrortroll/lemon40/lib/bongocat.c b/keyboards/horrortroll/lemon40/lib/bongocat.c
index 12ca8694c1..c90df38aec 100644
--- a/keyboards/horrortroll/lemon40/lib/bongocat.c
+++ b/keyboards/horrortroll/lemon40/lib/bongocat.c
@@ -14,7 +14,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "bongocat.h"
+#include <stdlib.h>
+#include "oled_driver.h"
+#include "progmem.h"
+#include "timer.h"
+#include "wpm.h"
+#include "util.h"
// WPM-responsive animation stuff here
#define IDLE_FRAMES 5
@@ -28,7 +34,6 @@
#define ANIM_FRAME_RATIO 2.5 // how aggressively animation speeds up with wpm
// #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing
#define ANIM_SIZE 525 // number of bytes in array, minimize for adequate firmware size, max is 1024
-#define MAX(x, y) (((x) > (y)) ? (x) : (y)) // Math.max macro
uint32_t curr_anim_duration = 0; // variable animation duration
uint32_t bongo_timer = 0;