lotus: Enable debugging
Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
parent
df81a1d1fd
commit
5fd60e9f23
@ -21,7 +21,7 @@
|
||||
#define LED_CAPS_LOCK_PIN GP24
|
||||
//#define LED_NUM_LOCK_PIN GP24
|
||||
|
||||
//#define SERIAL_DEBUG
|
||||
#define SERIAL_DEBUG
|
||||
|
||||
#define WS2812_PIO_USE_PIO1
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"bootmagic": false,
|
||||
"mousekey": true,
|
||||
"extrakey": true,
|
||||
"console": false,
|
||||
"console": true,
|
||||
"command": false,
|
||||
"nkro": true,
|
||||
"audio": false
|
||||
|
||||
@ -3,6 +3,13 @@
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Enable debug output
|
||||
debug_enable = true;
|
||||
debug_matrix = true;
|
||||
debug_keyboard = true;
|
||||
}
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬────┐
|
||||
|
||||
@ -57,7 +57,7 @@ static uint16_t adc_read(void) { return 0; }
|
||||
static bool interpret_adc_col(matrix_row_t cur_matrix[], uint16_t adc_value, int col) {
|
||||
bool changed = false;
|
||||
|
||||
printf("Col %d - ADC value:%04X", col, adc_value);
|
||||
printf("Col %d - ADC value:%04X\n", col, adc_value);
|
||||
for(uint8_t row = 0; row < MATRIX_ROWS; row++) {
|
||||
// TODO: Decode adc_value and set each row in this column
|
||||
uint8_t key_state = 0;
|
||||
@ -107,6 +107,7 @@ static void adc_mux_init(void) {
|
||||
* Overriding behavior of matrix_init from quantum/matrix.c
|
||||
*/
|
||||
void matrix_init_custom(void) {
|
||||
printf("Initializing Lotus\n");
|
||||
adc_mux_init();
|
||||
|
||||
// Make sure GPIO is high-impedance, no pullups etc
|
||||
|
||||
@ -13,5 +13,5 @@ RGB_MATRIX_DRIVER = IS31FL3745
|
||||
CUSTOM_MATRIX = lite
|
||||
SRC += matrix.c
|
||||
|
||||
# Debugging
|
||||
# Debugging (enabled in info.json)
|
||||
#CONSOLE_ENABLE = yes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user