Skip to content

Commit

Permalink
more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
k557osuman committed Oct 23, 2024
1 parent f434b41 commit 7ff13cf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
6 changes: 4 additions & 2 deletions keyboards/redragon/k556/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <chconf.h>
#define CH_CFG_OPTIMIZE_SPEED FALSE

#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE

#undef CH_CFG_ST_TIMEDELTA
#define CH_CFG_ST_TIMEDELTA 0
Expand All @@ -25,3 +26,4 @@
#undef CH_CFG_ST_FREQUENCY
#define CH_CFG_ST_FREQUENCY 10000

#include_next <chconf.h>
19 changes: 13 additions & 6 deletions keyboards/redragon/k556/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,21 @@
#define MATRIX_ROW_PINS { C15, D11, D10, D9, D8, D7 }

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
#define QMK_KEYS_PER_SCAN 12
#define DEBOUNCE 2
#define QMK_KEYS_PER_SCAN 8
#define USB_POLLING_INTERVAL_MS 1
#define REGISTER_MULTIPLE_KEYEVENTS_ENABLE
#define DEBUG_MATRIX_SCAN_RATE

/* Board and GPIO setup */
#define MATRIX_UNSELECT_DRIVE_HIGH
#define MATRIX_IO_DELAY 1
/* Enable NKRO - Up to 248 keys at the same time. */
#define FORCE_NKRO
#define MATRIX_IO_DELAY 0
#define GPIO_INPUT_PIN_DELAY 0
#define MATRIX_HAS_GHOST
#define SELECT_SOFT_SERIAL_SPEED 0

/* RGB MODE FOR CONSISTENT 1000HZ SCANRATE */
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SPLASH

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
//#define LOCKING_SUPPORT_ENABLE
Expand Down Expand Up @@ -91,7 +98,7 @@
/* RGB Reactive Effects Toggle */
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
//#define RGB_MATRIX_KEYRELEASES
#define RGB_MATRIX_KEYRELEASES

/* RGB Reactive Effects */
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
Expand Down
3 changes: 1 addition & 2 deletions keyboards/redragon/k556/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ MCU = SN32F248BF
# comment out to disable the options.
#
REGISTER_MULTIPLE_KEYEVENTS_ENABLE = yes
DEBOUNCE_TYPE = sym_defer_g
LTO_ENABLE = no
BACKLIGHT_ENABLE = no
MAGIC_ENABLE = yes
Expand All @@ -20,7 +19,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
NKRO_ENABLE = no # USB Nkey Rollover
AUDIO_ENABLE = no
RGBLIGHT_ENABLE = no
SERIAL_LINK_ENABLE = no
Expand Down
2 changes: 1 addition & 1 deletion platforms/chibios/boards/SN_SN32F240B/board/board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BOARDSRC = $(CHIBIOS_CONTRIB)/os/hal/boards/SN_SN32F240B/board.c
BOARDINC = $(CHIBIOS_CONTRIB)/os/hal/boards/SN_SN32F240B

# Optimize for speed
OPT = 1
OPT = 2
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
# Shave some extra bytes
Expand Down

0 comments on commit 7ff13cf

Please sign in to comment.