aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/projectkb/alice/alice.c
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@gmail.com>2019-05-06 00:08:12 -0400
committerDrashna Jaelre <drashna@live.com>2019-05-05 21:08:12 -0700
commitc2f9e018abbbb1aa8029001fe224b6082127e3a7 (patch)
treee58198ec8a7cae7c5b6a417930c07804230f18df /keyboards/projectkb/alice/alice.c
parentaf22609ba53332b7b1e56f3a79119cec6c2e8c39 (diff)
downloadfirmware-c2f9e018abbbb1aa8029001fe224b6082127e3a7.tar.gz
firmware-c2f9e018abbbb1aa8029001fe224b6082127e3a7.tar.bz2
firmware-c2f9e018abbbb1aa8029001fe224b6082127e3a7.zip
[Keyboard] Add ProjectKeyboard Alice PCB to QMK (#5581)
* Update instant60 for tsangan version * Add project alice keyboard * remove * Remove commented out code * Update readme * Add newline * Update keyboards/projectkb/alice/readme.md Co-Authored-By: awkannan <andrew.kannan@klaviyo.com> * Update keyboards/projectkb/alice/halconf.h Co-Authored-By: awkannan <andrew.kannan@klaviyo.com> * Update keyboards/projectkb/alice/halconf.h Co-Authored-By: awkannan <andrew.kannan@klaviyo.com> * Fix ifdef and use helper macros * Add reset keycode * udpate keymap * Add RGB Keycodes * Styling things * remove unused enum * fix
Diffstat (limited to 'keyboards/projectkb/alice/alice.c')
-rw-r--r--keyboards/projectkb/alice/alice.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/keyboards/projectkb/alice/alice.c b/keyboards/projectkb/alice/alice.c
new file mode 100644
index 000000000..fada43681
--- /dev/null
+++ b/keyboards/projectkb/alice/alice.c
@@ -0,0 +1,27 @@
+#include "alice.h"
+
+void matrix_init_board(void){
+ setPinOutput(A0);
+ setPinOutput(A1);
+ setPinOutput(A2);
+}
+
+
+void led_set_kb(uint8_t usb_led) {
+ if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
+ writePinLow(A0);
+ } else {
+ writePinHigh(A0);
+ }
+ if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ writePinLow(A1);
+ } else {
+ writePinHigh(A1);
+ }
+ if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
+ writePinLow(A2);
+ } else {
+ writePinHigh(A2);
+ }
+ led_set_user(usb_led);
+}