Skip to content

Commit c696239

Browse files
drashnanhongooi
authored andcommitted
[Keyboard] Fixup Neson Design N6 ISSI includes (qmk#14045)
1 parent 0bb7394 commit c696239

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

keyboards/neson_design/n6/n6.c

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "n6.h"
2121
#include "i2c_master.h"
22-
#include "issi/is31fl3731.h"
22+
#include "drivers/led/issi/is31fl3731.h"
2323

2424
enum {
2525
SELF_TESTING,
@@ -158,7 +158,7 @@ static void self_testing(void)
158158
}
159159

160160
// light left and right
161-
161+
162162
if (rgb_state.index == 16) {
163163
if (rgb_state.duration) {
164164
rgb_state.duration--;
@@ -187,49 +187,49 @@ static void self_testing(void)
187187
update_ticks();
188188
}
189189

190-
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
191-
/* Refer to IS31 manual for these locations
192-
* driver
193-
* | R location
194-
* | | G location
195-
* | | | B location
196-
* | | | | */
197-
// left CA
198-
{0, C1_1, C3_2, C4_2},
199-
{0, C1_2, C2_2, C4_3},
200-
{0, C1_3, C2_3, C3_3},
201-
{0, C1_4, C2_4, C3_4},
202-
{0, C1_5, C2_5, C3_5},
203-
{0, C1_6, C2_6, C3_6},
204-
{0, C1_7, C2_7, C3_7},
205-
{0, C1_8, C2_8, C3_8},
190+
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
191+
/* Refer to IS31 manual for these locations
192+
* driver
193+
* | R location
194+
* | | G location
195+
* | | | B location
196+
* | | | | */
197+
// left CA
198+
{0, C1_1, C3_2, C4_2},
199+
{0, C1_2, C2_2, C4_3},
200+
{0, C1_3, C2_3, C3_3},
201+
{0, C1_4, C2_4, C3_4},
202+
{0, C1_5, C2_5, C3_5},
203+
{0, C1_6, C2_6, C3_6},
204+
{0, C1_7, C2_7, C3_7},
205+
{0, C1_8, C2_8, C3_8},
206206

207-
{0, C9_1, C8_1, C7_1},
208-
{0, C9_2, C8_2, C7_2},
209-
{0, C9_3, C8_3, C7_3},
210-
{0, C9_4, C8_4, C7_4},
211-
{0, C9_5, C8_5, C7_5},
212-
{0, C9_6, C8_6, C7_6},
213-
{0, C9_7, C8_7, C6_6},
214-
{0, C9_8, C7_7, C6_7},
215-
// left CB
216-
{0, C1_9, C3_10, C4_10},
217-
{0, C1_10, C2_10, C4_11},
218-
{0, C1_11, C2_11, C3_11},
219-
{0, C1_12, C2_12, C3_12},
220-
{0, C1_13, C2_13, C3_13},
221-
{0, C1_14, C2_14, C3_14},
222-
{0, C1_15, C2_15, C3_15},
223-
{0, C1_16, C2_16, C3_16},
207+
{0, C9_1, C8_1, C7_1},
208+
{0, C9_2, C8_2, C7_2},
209+
{0, C9_3, C8_3, C7_3},
210+
{0, C9_4, C8_4, C7_4},
211+
{0, C9_5, C8_5, C7_5},
212+
{0, C9_6, C8_6, C7_6},
213+
{0, C9_7, C8_7, C6_6},
214+
{0, C9_8, C7_7, C6_7},
215+
// left CB
216+
{0, C1_9, C3_10, C4_10},
217+
{0, C1_10, C2_10, C4_11},
218+
{0, C1_11, C2_11, C3_11},
219+
{0, C1_12, C2_12, C3_12},
220+
{0, C1_13, C2_13, C3_13},
221+
{0, C1_14, C2_14, C3_14},
222+
{0, C1_15, C2_15, C3_15},
223+
{0, C1_16, C2_16, C3_16},
224224

225-
{0, C9_9, C8_9, C7_9},
226-
{0, C9_10, C8_10, C7_10},
227-
{0, C9_11, C8_11, C7_11},
228-
{0, C9_12, C8_12, C7_12},
229-
{0, C9_13, C8_13, C7_13},
230-
{0, C9_14, C8_14, C7_14},
231-
{0, C9_15, C8_15, C6_14},
232-
{0, C9_16, C7_15, C6_15},
225+
{0, C9_9, C8_9, C7_9},
226+
{0, C9_10, C8_10, C7_10},
227+
{0, C9_11, C8_11, C7_11},
228+
{0, C9_12, C8_12, C7_12},
229+
{0, C9_13, C8_13, C7_13},
230+
{0, C9_14, C8_14, C7_14},
231+
{0, C9_15, C8_15, C6_14},
232+
{0, C9_16, C7_15, C6_15},
233233
};
234234
#endif
235235
__attribute__((weak))
@@ -240,7 +240,7 @@ void matrix_init_kb(void)
240240
// clear caps led
241241
setPinOutput(CAPS_PIN);
242242
writePinLow(CAPS_PIN);
243-
#ifdef RGBLIGHT_ENABLE
243+
#ifdef RGBLIGHT_ENABLE
244244
i2c_init();
245245
IS31FL3731_init(DRIVER_ADDR_1);
246246
for (int index = 0; index < DRIVER_LED_TOTAL; index++) {
@@ -252,7 +252,7 @@ void matrix_init_kb(void)
252252
matrix_init_user();
253253
}
254254

255-
#ifdef RGBLIGHT_ENABLE
255+
#ifdef RGBLIGHT_ENABLE
256256
void housekeeping_task_kb(void)
257257
{
258258
if (rgb_state.state == SELF_TESTING) {
@@ -261,7 +261,7 @@ void housekeeping_task_kb(void)
261261
//gold 0xFF, 0xD9, 0x00
262262
LED_TYPE led = {
263263
.r = 0xFF,
264-
.g = 0xD9,
264+
.g = 0xD9,
265265
.b = 0x00,
266266
};
267267
if (rgb_state.alert) {
@@ -303,7 +303,7 @@ bool led_update_kb(led_t led_state)
303303
if (res) {
304304
writePin(CAPS_PIN, led_state.caps_lock);
305305

306-
#ifdef RGBLIGHT_ENABLE
306+
#ifdef RGBLIGHT_ENABLE
307307
if (rgb_state.state != SELF_TESTING) {
308308
if (led_state.caps_lock) {
309309
rgb_state.state = CAPS_ALERT;
@@ -316,4 +316,4 @@ bool led_update_kb(led_t led_state)
316316
#endif
317317
}
318318
return res;
319-
}
319+
}

keyboards/neson_design/n6/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ NKRO_ENABLE = yes # USB Nkey Rollover
1919
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
2020
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
2121

22-
QUANTUM_LIB_SRC += i2c_master.c issi/is31fl3731.c
22+
QUANTUM_LIB_SRC += i2c_master.c drivers/led/issi/is31fl3731.c
2323
LAYOUTS = 65_ansi_blocker

0 commit comments

Comments
 (0)