Skip to content

Commit

Permalink
firmware/qmk: sync
Browse files Browse the repository at this point in the history
  • Loading branch information
rgoulter committed Jun 13, 2024
1 parent fd1e8c1 commit 1598667
Show file tree
Hide file tree
Showing 12 changed files with 544 additions and 543 deletions.
30 changes: 15 additions & 15 deletions firmware/qmk/keyboards/rgoulter/minif4_36/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
// RGB Matrix
#ifdef RGB_MATRIX_ENABLE

#ifdef SPLIT_KEYBOARD
# ifdef SPLIT_KEYBOARD
// 18 + 4 on each side
#define DRIVER_LED_TOTAL 44
#define RGB_MATRIX_LED_COUNT 44
#define RGB_MATRIX_SPLIT { 22,22 }
#else
#define DRIVER_LED_TOTAL 22
#define RGB_MATRIX_LED_COUNT 22
#endif
# define DRIVER_LED_TOTAL 44
# define RGB_MATRIX_LED_COUNT 44
# define RGB_MATRIX_SPLIT \
{ 22, 22 }
# else
# define DRIVER_LED_TOTAL 22
# define RGB_MATRIX_LED_COUNT 22
# endif

#define RGB_MATRIX_KEYPRESSES
# define RGB_MATRIX_KEYPRESSES

#endif

// OLED
#ifdef OLED_ENABLE
/* B8, B9 instead of B6, B7 */
#define I2C1_SCL_PIN B8
#define I2C1_SDA_PIN B9
# define I2C1_SCL_PIN B8
# define I2C1_SDA_PIN B9
#endif


#ifdef SPLIT_KEYBOARD
#ifdef HAPTIC_ENABLE
#define SPLIT_HAPTIC_ENABLE
#endif
# ifdef HAPTIC_ENABLE
# define SPLIT_HAPTIC_ENABLE
# endif
#endif
8 changes: 4 additions & 4 deletions firmware/qmk/keyboards/rgoulter/minif4_36/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
#pragma once

#ifdef OLED_ENABLE
#define HAL_USE_I2C TRUE
# define HAL_USE_I2C TRUE
#endif

#ifdef RGB_MATRIX_ENABLE
#define HAL_USE_PWM TRUE
# define HAL_USE_PWM TRUE
#endif

#ifdef SPLIT_KEYBOARD
#define PAL_USE_CALLBACKS TRUE
#define PAL_USE_WAIT TRUE
# define PAL_USE_CALLBACKS TRUE
# define PAL_USE_WAIT TRUE
#endif

#include_next <halconf.h>
2 changes: 1 addition & 1 deletion firmware/qmk/keyboards/rgoulter/minif4_36/minif4_36.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "minif4_36.h"

#ifdef SPLIT_KEYBOARD
#include "split_util.h"
# include "split_util.h"
#endif

void board_init(void) {
Expand Down
1 change: 0 additions & 1 deletion firmware/qmk/keyboards/rgoulter/minif4_36/minif4_36.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
#pragma once

#include "quantum.h"

24 changes: 12 additions & 12 deletions firmware/qmk/keyboards/rgoulter/x_2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@

// RGB Lighting
#ifdef RGBLIGHT_ENABLE
#define DRIVER_LED_TOTAL 4
#define RGBLED_NUM 4
#define RGBLIGHT_LIMIT_VAL 80
#define RGBLIGHT_DEFAULT_VAL 30
#define RGBLIGHT_VAL_STEP 8
# define DRIVER_LED_TOTAL 4
# define RGBLED_NUM 4
# define RGBLIGHT_LIMIT_VAL 80
# define RGBLIGHT_DEFAULT_VAL 30
# define RGBLIGHT_VAL_STEP 8
#endif

#ifdef RGB_MATRIX_ENABLE
#define DRIVER_LED_TOTAL 70
#define RGBLED_NUM 70
#define RGB_MATRIX_LED_COUNT 70
#define RGB_MATRIX_KEYPRESSES
# define DRIVER_LED_TOTAL 70
# define RGBLED_NUM 70
# define RGB_MATRIX_LED_COUNT 70
# define RGB_MATRIX_KEYPRESSES
#endif

#ifdef RGB_MATRIX_ENABLE
#ifdef RGBLIGHT_ENABLE
#error "rgblight and rgb_matrix both enabled"
#endif
# ifdef RGBLIGHT_ENABLE
# error "rgblight and rgb_matrix both enabled"
# endif
#endif
4 changes: 2 additions & 2 deletions firmware/qmk/keyboards/rgoulter/x_2/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#pragma once

#ifdef RGBLIGHT_ENABLE
#define HAL_USE_PWM TRUE
# define HAL_USE_PWM TRUE
#endif

#ifdef RGB_MATRIX_ENABLE
#define HAL_USE_PWM TRUE
# define HAL_USE_PWM TRUE
#endif

#include_next <halconf.h>
Loading

0 comments on commit 1598667

Please sign in to comment.