aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/gray_studio/think65/solder/readme.md2
-rw-r--r--keyboards/gray_studio/think65/solder/solder.c22
-rw-r--r--keyboards/gray_studio/think65/solder/solder.h8
3 files changed, 8 insertions, 24 deletions
diff --git a/keyboards/gray_studio/think65/solder/readme.md b/keyboards/gray_studio/think65/solder/readme.md
index e8636bf8a..1d7e4450a 100644
--- a/keyboards/gray_studio/think65/solder/readme.md
+++ b/keyboards/gray_studio/think65/solder/readme.md
@@ -6,8 +6,6 @@ Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
6Hardware Supported: Think6.5 Compatible PCB 6Hardware Supported: Think6.5 Compatible PCB
7Hardware Availability: [Geekhack GB](https://geekhack.org/index.php?topic=100166.0) 7Hardware Availability: [Geekhack GB](https://geekhack.org/index.php?topic=100166.0)
8 8
9**Note:** The `LAYOUT_65_ansi_blocker` LAYOUT macro utilizes the same pins and switch matrix as the hotswap version. Any firmware made with this LAYOUT macro can be flashed on both the Solder (Compatible) version and the Hotswap version of the Think6.5.
10
11**Indicator LEDs:** The solder PCB ONLY supports Caps Lock LEDs unlike the Hotswap version that supports Num Lock, Caps Lock, and Scroll Lock. 9**Indicator LEDs:** The solder PCB ONLY supports Caps Lock LEDs unlike the Hotswap version that supports Num Lock, Caps Lock, and Scroll Lock.
12 10
13Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
diff --git a/keyboards/gray_studio/think65/solder/solder.c b/keyboards/gray_studio/think65/solder/solder.c
index 4f40fb4a9..48ed25b19 100644
--- a/keyboards/gray_studio/think65/solder/solder.c
+++ b/keyboards/gray_studio/think65/solder/solder.c
@@ -25,17 +25,9 @@ void matrix_init_kb(void) {
25 // runs once when the firmware starts up 25 // runs once when the firmware starts up
26 26
27 setPinOutput(C7); 27 setPinOutput(C7);
28
29 matrix_init_user(); 28 matrix_init_user();
30} 29}
31 30
32void matrix_scan_kb(void) {
33 // put your looping keyboard code here
34 // runs every cycle (a lot)
35
36 matrix_scan_user();
37}
38
39bool process_record_kb(uint16_t keycode, keyrecord_t *record) { 31bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
40 // put your per-action keyboard code here 32 // put your per-action keyboard code here
41 // runs for every action, just before processing by the firmware 33 // runs for every action, just before processing by the firmware
@@ -43,15 +35,9 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
43 return process_record_user(keycode, record); 35 return process_record_user(keycode, record);
44} 36}
45 37
46void led_set_kb(uint8_t usb_led) { 38bool led_update_kb(led_t led_state) {
47 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 39 if(led_update_user(led_state)) {
48 40 writePin(C7, !led_state.caps_lock);
49 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
50 writePinLow(C7);
51 } else {
52 writePinHigh(C7);
53 } 41 }
54 42 return true;
55 led_set_user(usb_led);
56} 43}
57
diff --git a/keyboards/gray_studio/think65/solder/solder.h b/keyboards/gray_studio/think65/solder/solder.h
index 19ee55125..f38306b2b 100644
--- a/keyboards/gray_studio/think65/solder/solder.h
+++ b/keyboards/gray_studio/think65/solder/solder.h
@@ -32,16 +32,16 @@
32} 32}
33 33
34#define LAYOUT_65_ansi_blocker( \ 34#define LAYOUT_65_ansi_blocker( \
35 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, K0F, \ 35 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0F, \
36 K10, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, \ 36 K10, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, \
37 K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2F, \ 37 K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2F, \
38 K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3E, K3F, \ 38 K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3E, K3F, \
39 K40, K41, K43, K46, K4A, K4B, K4D, K4E, K4F \ 39 K40, K41, K43, K46, K4A, K4B, K4D, K4E, K4F \
40) { \ 40) { \
41 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, KC_NO, K0E, K0F }, \ 41 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, KC_NO, K0F }, \
42 { K10, KC_NO, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ 42 { K10, KC_NO, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \
43 { K20, KC_NO, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, KC_NO, K2F }, \ 43 { K20, KC_NO, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, KC_NO, K2F }, \
44 { KC_NO, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, K3D, K3E, K3F }, \ 44 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, K3D, K3E, K3F }, \
45 { K40, K41, KC_NO, K43, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, KC_NO, K4D, K4E, K4F }, \ 45 { K40, K41, KC_NO, K43, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, KC_NO, K4D, K4E, K4F }, \
46} 46}
47 47