lotus: Fix RGB

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
This commit is contained in:
Daniel Schaefer 2023-01-06 15:41:11 +08:00
parent 02a496cad2
commit f56d8cf742
3 changed files with 10 additions and 5 deletions

View File

@ -27,7 +27,7 @@
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B
// I2C for the RBG controller
#define I2C_DRIVER I2CD0
#define I2C_DRIVER I2CD1
#define I2C1_SDA_PIN GP26
#define I2C1_SCL_PIN GP27

View File

@ -6,6 +6,11 @@
#define MUX_ENABLE_GPIO GP4
#define BOOT_DONE_GPIO GP5
// SDB
// 22 only on RPi Pico because it doesn't have GP29
#define IS31FL3743A_ENABLE_GPIO GP22
//#define IS31FL3743A_ENABLE_GPIO GP29
void keyboard_post_init_user(void) {
// Enable debug output
@ -25,8 +30,8 @@ void keyboard_pre_init_user(void) {
writePinHigh(BOOT_DONE_GPIO);
// TODO: Do we ever need to disable it to save power?
setPinOutput(MUX_ENABLE_GPIO);
writePinHigh(MUX_ENABLE_GPIO);
setPinOutput(IS31FL3743A_ENABLE_GPIO);
writePinHigh(IS31FL3743A_ENABLE_GPIO);
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {

View File

@ -18,8 +18,8 @@
#undef RP_PWM_USE_PWM4
#define RP_PWM_USE_PWM4 TRUE
#undef RP_I2C_USE_I2C0
#define RP_I2C_USE_I2C0 TRUE
#undef RP_I2C_USE_I2C1
#define RP_I2C_USE_I2C1 TRUE
/*
* IRQ system settings.