Skip to content

Commit

Permalink
[Keyboard] Add Pachi RGB Rev 2 (qmk#15141)
Browse files Browse the repository at this point in the history
Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored and coquizen committed Jun 3, 2022
1 parent d62e07e commit 7febecc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
17 changes: 7 additions & 10 deletions keyboards/xelus/pachi/rgb/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define PRODUCT_ID 0x5052 // "PR"
#define DEVICE_VER 0x0001
#define MANUFACTURER Xelus
#define PRODUCT Xelus Pachi RGB Rev1
#define PRODUCT Xelus Pachi RGB

/* key matrix size */
#define MATRIX_ROWS 6
Expand All @@ -45,22 +45,19 @@
#define LOCKING_RESYNC_ENABLE

// I2C setup
#define I2C1_SCL_PIN B8
#define I2C1_SDA_PIN B9
#define I2C1_SCL 8
#define I2C1_SDA 9
#define I2C1_SCL_PAL_MODE 4
#define I2C1_SDA_PAL_MODE 4
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 7U
#define I2C1_TIMINGR_SCLDEL 11U
#define I2C1_TIMINGR_SDADEL 0U
#define I2C1_TIMINGR_SCLH 45U
#define I2C1_TIMINGR_SCLL 149U
#define I2C1_TIMINGR_SCLH 14U
#define I2C1_TIMINGR_SCLL 42U

// I2C EEPROM
#define EEPROM_I2C_24LC64

// More EEPROM for layers
#define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 8191

// RGB Matrix defines
#define DRIVER_ADDR_1 0b0110000

Expand Down Expand Up @@ -101,7 +98,7 @@
#define ENABLE_RGB_MATRIX_HUE_BREATHING
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
#define ENABLE_RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
#define ENABLE_RGB_MATRIX_FRACTAL
#define ENABLE_RGB_MATRIX_PIXEL_RAIN

#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
Expand Down
2 changes: 1 addition & 1 deletion keyboards/xelus/pachi/rgb/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
#ifdef RGB_MATRIX_ENABLE
#include "i2c_master.h"
#include "drivers/led/issi/is31fl3741.h"
const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
/* Refer to IS31 manual for these locations
* driver
* | R location
Expand Down
10 changes: 5 additions & 5 deletions keyboards/xelus/pachi/rgb/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

/* USB Device descriptor parameter */
#define VENDOR_ID 0x5845 // "XE"
#define PRODUCT_ID 0x5053 // "PR" + 1
#define PRODUCT_ID 0x5052 // "PR"
#define DEVICE_VER 0x0002
#define MANUFACTURER Xelus
#define PRODUCT Xelus Pachi RGB Rev 2
#define PRODUCT Xelus Pachi RGB

/* key matrix size */
#define MATRIX_ROWS 12
Expand Down Expand Up @@ -50,10 +50,10 @@
#define I2C1_SCL_PAL_MODE 4
#define I2C1_SDA_PAL_MODE 4
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 7U
#define I2C1_TIMINGR_SCLDEL 11U
#define I2C1_TIMINGR_SDADEL 0U
#define I2C1_TIMINGR_SCLH 45U
#define I2C1_TIMINGR_SCLL 149U
#define I2C1_TIMINGR_SCLH 14U
#define I2C1_TIMINGR_SCLL 42U

// I2C EEPROM
#define EEPROM_I2C_24LC64
Expand Down
2 changes: 1 addition & 1 deletion keyboards/xelus/pachi/rgb/rev2/rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
#ifdef RGB_MATRIX_ENABLE
#include "i2c_master.h"
#include "drivers/led/issi/is31fl3741.h"
const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
/* Refer to IS31 manual for these locations
* driver
* | R location
Expand Down
5 changes: 4 additions & 1 deletion keyboards/xelus/pachi/rgb/rev2/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output

Expand Down

0 comments on commit 7febecc

Please sign in to comment.