Skip to content

Commit 4acdb4c

Browse files
fauxparkchristrotter
authored andcommitted
Remove custom ISSI lighting code (qmk#22073)
* Remove CU75 custom lighting * Remove LFK78 custom lighting * Remove LFK87 custom lighting * Remove LFKPad custom lighting * Remove Mini1800 custom lighting * Remove SMK65 custom lighting * Remove LFK65-HS custom lighting * Remove LFKeyboards custom lighting * Remove Meira custom lighting
1 parent 5582390 commit 4acdb4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+16
-2929
lines changed

keyboards/capsunlocked/cu75/config.h

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#define BACKLIGHT_PWM_MAP {8, 16, 40, 55, 70, 128, 200, 255}
21-
2220
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
2321
#define LOCKING_SUPPORT_ENABLE
2422
/* Locking resynchronize hack */

keyboards/capsunlocked/cu75/cu75.c

+1-44
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
#include <avr/sfr_defs.h>
2-
#include <avr/timer_avr.h>
3-
#include <avr/wdt.h>
41
#include "cu75.h"
5-
#include "debug.h"
6-
#include "../lfkeyboards/issi.h"
7-
#include "../lfkeyboards/TWIlib.h"
8-
#include "../lfkeyboards/lighting.h"
2+
#include <avr/wdt.h>
93

104
#ifdef AUDIO_ENABLE
115
float test_sound[][2] = SONG(STARTUP_SOUND);
12-
#include "audio.h"
136
#endif
147

158
uint16_t click_hz = CLICK_HZ;
@@ -34,39 +27,12 @@ void matrix_init_kb(void)
3427
setPinOutput(C6);
3528
writePinLow(C6);
3629
#endif
37-
#ifdef ISSI_ENABLE
38-
issi_init();
39-
#endif
4030
}
4131

4232
void matrix_scan_kb(void)
4333
{
4434
#ifdef WATCHDOG_ENABLE
4535
wdt_reset();
46-
#endif
47-
#ifdef ISSI_ENABLE
48-
// switch/underglow lighting update
49-
static uint32_t issi_device = 0;
50-
static uint32_t twi_last_ready = 0;
51-
if(twi_last_ready > 1000){
52-
// Its been way too long since the last ISSI update, reset the I2C bus and start again
53-
dprintf("TWI failed to recover, TWI re-init\n");
54-
twi_last_ready = 0;
55-
TWIInit();
56-
force_issi_refresh();
57-
}
58-
if(isTWIReady()){
59-
twi_last_ready = 0;
60-
// If the i2c bus is available, kick off the issi update, alternate between devices
61-
update_issi(issi_device, issi_device);
62-
if(issi_device){
63-
issi_device = 0;
64-
}else{
65-
issi_device = 3;
66-
}
67-
}else{
68-
twi_last_ready++;
69-
}
7036
#endif
7137
matrix_scan_user();
7238
}
@@ -92,7 +58,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
9258
}
9359
if (keycode == QK_BOOT) {
9460
reset_keyboard_kb();
95-
} else {
9661
}
9762
return process_record_user(keycode, record);
9863
}
@@ -105,11 +70,3 @@ void reset_keyboard_kb(void){
10570
#endif
10671
reset_keyboard();
10772
}
108-
109-
// LFK lighting info
110-
const uint8_t switch_matrices[] = {0, 1};
111-
const uint8_t rgb_matrices[] = {6, 7};
112-
const uint8_t rgb_sequence[] = {
113-
24, 23, 22, 21, 20, 19, 18, 17, 1, 2, 3, 4, 5,
114-
6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 9
115-
};

keyboards/capsunlocked/cu75/cu75.h

-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
#pragma once
22

33
#include "quantum.h"
4-
#include "matrix.h"
5-
#include <avr/sfr_defs.h>
6-
7-
typedef struct RGB_Color {
8-
uint16_t red;
9-
uint16_t green;
10-
uint16_t blue;
11-
} RGB_Color;
12-
13-
typedef struct Layer_Info {
14-
uint32_t layer;
15-
uint32_t mask;
16-
RGB_Color color;
17-
} Layer_Info;
18-
19-
extern const uint32_t layer_count;
20-
extern const Layer_Info layer_info[];
214

225
#define CLICK_HZ 500
236
#define CLICK_MS 2

keyboards/capsunlocked/cu75/info.json

-24
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,6 @@
1313
"rows": ["F1", "B7", "B3", "D2", "D3", "B2"]
1414
},
1515
"diode_direction": "COL2ROW",
16-
"backlight": {
17-
"driver": "custom",
18-
"levels": 8
19-
},
20-
"rgblight": {
21-
"driver": "custom",
22-
"hue_steps": 10,
23-
"led_count": 24,
24-
"animations": {
25-
"breathing": true,
26-
"rainbow_mood": true,
27-
"rainbow_swirl": true,
28-
"snake": true,
29-
"knight": true,
30-
"christmas": true,
31-
"static_gradient": true,
32-
"rgb_test": true,
33-
"alternating": true,
34-
"twinkle": true
35-
}
36-
},
37-
"ws2812": {
38-
"pin": "C7"
39-
},
4016
"processor": "atmega32u4",
4117
"bootloader": "atmel-dfu",
4218
"layouts": {

keyboards/capsunlocked/cu75/keymaps/default/rules.mk

-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
44
CONSOLE_ENABLE = no # Console for debug
55
COMMAND_ENABLE = no # Commands for debug and configuration
66
NKRO_ENABLE = yes
7-
BACKLIGHT_ENABLE = yes # Disable keyboard backlight functionality
87
AUDIO_ENABLE = no # Audio output
9-
RGBLIGHT_ENABLE = yes # Disable RGB underlight
10-
SLEEP_LED_ENABLE = yes
11-
12-
ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
138
WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms

keyboards/capsunlocked/cu75/keymaps/iso/rules.mk

-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
44
CONSOLE_ENABLE = yes # Console for debug(+400)
55
COMMAND_ENABLE = yes # Commands for debug and configuration
66
NKRO_ENABLE = yes
7-
# BACKLIGHT_ENABLE = no # Disable keyboard backlight functionality
87
AUDIO_ENABLE = no # Audio output
9-
RGBLIGHT_ENABLE = no # Disable RGB underlight
10-
SLEEP_LED_ENABLE = yes
11-
12-
ISSI_ENABLE = no # If the I2C pullup resistors aren't install this must be disabled
138
WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms

keyboards/capsunlocked/cu75/post_rules.mk

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
ifeq ($(strip $(ISSI_ENABLE)), yes)
2-
OPT_DEFS += -DISSI_ENABLE
3-
endif
4-
51
ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
62
OPT_DEFS += -DWATCHDOG_ENABLE
73
endif

keyboards/capsunlocked/cu75/rules.mk

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
# TODO: These boards need to be converted to RGB Matrix
2-
VPATH += keyboards/lfkeyboards
3-
SRC = TWIlib.c issi.c lighting.c

0 commit comments

Comments
 (0)