Skip to content

Commit fff18c5

Browse files
Removed unused debugging lines.
1 parent 090f330 commit fff18c5

File tree

1 file changed

+9
-24
lines changed
  • ports/espressif/boards/m5stack_cardputer

1 file changed

+9
-24
lines changed

ports/espressif/boards/m5stack_cardputer/board.c

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -141,28 +141,19 @@ void board_init(void) {
141141
false, // SH1107_addressing
142142
350 // backlight pwm frequency
143143
);
144-
//void common_hal_keypad_demux_demuxkeymatrix_construct(
145-
// keypad_demux_demuxkeymatrix_obj_t *self,
146-
// mp_uint_t num_row_addr_pins,
147-
// const mcu_pin_obj_t *row_addr_pins[],
148-
// mp_uint_t num_column_pins,
149-
// const mcu_pin_obj_t *column_pins[],
150-
// mp_float_t interval,
151-
// size_t max_events,
152-
// uint8_t debounce_threshold) {
153144
}
154145

155146
void board_serial_init() {
156147
common_hal_keypad_demux_demuxkeymatrix_construct(
157-
&board_keyboard, // self
158-
3, // num_row_addr_pins
159-
row_addr_pins, // row_addr_pins
160-
7, // num_column_pins
161-
column_pins, // column_pins
162-
0.01f, // interval
163-
20, // max_events
164-
2 // debounce_threshold
165-
);
148+
&board_keyboard, // self
149+
3, // num_row_addr_pins
150+
row_addr_pins, // row_addr_pins
151+
7, // num_column_pins
152+
column_pins, // column_pins
153+
0.01f, // interval
154+
20, // max_events
155+
2 // debounce_threshold
156+
);
166157
demuxkeymatrix_never_reset(&board_keyboard);
167158
}
168159

@@ -199,9 +190,7 @@ void update_keyboard() {
199190
return;
200191
}
201192

202-
//mp_printf(&mp_plat_print, "NextScan:%d\n", board_keyboard.next_scan_ticks);
203193
while (common_hal_keypad_eventqueue_get_into(board_keyboard.events, &event)) {
204-
//mp_printf(&mp_plat_print, "Got Event: %d %d\n", event.key_number, event.pressed);
205194
if (event.pressed) {
206195
keystate[event.key_number] = 1;
207196

@@ -213,10 +202,6 @@ void update_keyboard() {
213202
if (ascii >= 'a' && ascii <= 'z') {
214203
ascii -= 'a' - 1;
215204
}
216-
//if (ascii == 3) {
217-
// // Ctrl-C
218-
// mp_sched_keyboard_interrupt();
219-
//}
220205
} else if (keystate[KEY_SHIFT]) {
221206
ascii = keymap_shifted[event.key_number];
222207
} else if (keystate[KEY_FN] && event.key_number != KEY_FN) {

0 commit comments

Comments
 (0)