aboutsummaryrefslogtreecommitdiff
path: root/keyboards/clueboard/2x1800/2021
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/clueboard/2x1800/2021')
-rw-r--r--keyboards/clueboard/2x1800/2021/keyboard.json (renamed from keyboards/clueboard/2x1800/2021/info.json)0
-rw-r--r--keyboards/clueboard/2x1800/2021/max7219.c8
-rw-r--r--keyboards/clueboard/2x1800/2021/max7219.h6
3 files changed, 10 insertions, 4 deletions
diff --git a/keyboards/clueboard/2x1800/2021/info.json b/keyboards/clueboard/2x1800/2021/keyboard.json
index 8800d05cf2..8800d05cf2 100644
--- a/keyboards/clueboard/2x1800/2021/info.json
+++ b/keyboards/clueboard/2x1800/2021/keyboard.json
diff --git a/keyboards/clueboard/2x1800/2021/max7219.c b/keyboards/clueboard/2x1800/2021/max7219.c
index 1ba22362fe..849889a52e 100644
--- a/keyboards/clueboard/2x1800/2021/max7219.c
+++ b/keyboards/clueboard/2x1800/2021/max7219.c
@@ -40,6 +40,10 @@
*/
#include "max7219.h"
+#include "spi_master.h"
+#include "debug.h"
+#include "gpio.h"
+#include "wait.h"
#include "font.h"
// Datastructures
@@ -202,8 +206,8 @@ void max7219_init(void) {
wait_ms(1500);
dprintf("max7219_init()\n");
- setPinOutput(MAX7219_LOAD);
- writePinHigh(MAX7219_LOAD);
+ gpio_set_pin_output(MAX7219_LOAD);
+ gpio_write_pin_high(MAX7219_LOAD);
spi_init();
for (int i=0; i<MAX7219_CONTROLLERS; i++) {
diff --git a/keyboards/clueboard/2x1800/2021/max7219.h b/keyboards/clueboard/2x1800/2021/max7219.h
index 95d1d9389d..6d78345d5d 100644
--- a/keyboards/clueboard/2x1800/2021/max7219.h
+++ b/keyboards/clueboard/2x1800/2021/max7219.h
@@ -26,8 +26,10 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#pragma once
-#include "quantum.h"
-#include "spi_master.h"
+
+#include <stddef.h>
+#include <stdint.h>
+#include <stdbool.h>
// Set defaults if they're not set
#ifndef MAX7219_LOAD