The RGB SVT source codes at Summary Links below.
|SVT RGB dumbpad (front)|
|SVT RGB dumbpad (back)|
It support a few commonly used micro-controller like Atmel atmega32u4, Freescale Teensy and STM32 families of micro-controllers. For my case, the Pro Micro uses the Atmel atmega32u4, a popular choice for Arduino that can emulate a keyboard / HID devices.
As I am just a fork of the dumbpad keyboard, I will also just need to modify the same keyboard by modifying the keymaps and config files only. The QMK does NOT use the Arduino IDE.
As my primary computer runs on Win 10 , I will choose the Windows development tools and downloaded the following software.
- QMK Toolbox
- VSCode ( I already have this )
Figuring out the LED pins
LED2 at port B3 is shared between LED2 or RGB LED pin.
I also noticed there are two extra on-board LED at port B0 and port D5, let's configure them as well. As the Pro Micro is facing downwards, the two on-board LED, will only shine downwards and not very useful in every use.
Below are the config.h for the LEDs
/* LED layer indicators */
// Using external LED for layers indicator
#define LAYER_INDICATOR_LED_0 B6 // Red
#define LAYER_INDICATOR_LED_1 B1 // Blue or Green
// On-board LED for debugging
#define LAYER_INDICATOR_LED_2 B0
#define LAYER_INDICATOR_LED_3 D5
The next pin are the most exciting one, the RGB pins as below, you need to state the pin number and the number of LEDs on the LED strip. As I run them in mirror mode ( Both LED strip will display the same patterns, I just indicate 4 as the number of LEDs )
#define RGB_DI_PIN B3
#define RGBLED_NUM 4
The rest of the RGB animations / patterns can be customized according to your own needs.
Once all the config.h pin definition is done, I make a copy of the default keymap folder for my keyboard, I called it svt_numpad
Edit the keymap.c file, the default already have all the keys mapped.
From here, you can change the keys according to the documentation from QMK here.
RGB stuff here
- RGB SVT dumbpad forks
- Keycodes basic
- RGB Lights
- Part 1 : https://arduino-for-beginners.blogspot.com/2020/11/building-4x4-mechanical-keyboard-with.html
- Part 3 : https://arduino-for-beginners.blogspot.com/2021/02/rgb-svt-hotswap-and-improvements.html
- Part 4 https://arduino-for-beginners.blogspot.com/2021/06/per-key-rgb-for-svt-rgb-dumbpad.html
Part 3 with additional modifications to support hotswap keys.