From 9902798d63bbfcf4f2734ad684683b90a62a23c4 Mon Sep 17 00:00:00 2001 From: wolfv6 Date: Sat, 3 Sep 2016 11:15:57 -0600 Subject: [PATCH] document --- doc/keybrd_library_user_guide.md | 5 +++++ src/config_keybrd.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/keybrd_library_user_guide.md b/doc/keybrd_library_user_guide.md index 7ba0e3d..50b0aea 100644 --- a/doc/keybrd_library_user_guide.md +++ b/doc/keybrd_library_user_guide.md @@ -172,6 +172,11 @@ Development-environment items to check: Where 'KEY_A' could be any scan code. Fix this error from the Arduino IDE tool bar: Tools > USB Type > Keyboard + Mouse + Joystick +* If last line in Arduino IDE says "Low memory available", + second-to-last line should say "leaving 100 bytes for local variables" or more bytes. +* In keybrd/src/config_keybrd.h file, read_pins_t defaults to uint32_t. + If more memory is needed, 8-bit controllers can use uint8_t. + Sketch items to check: * For each row, number of read pins in Row should equal number of keys. In this example, row_0 has 2 read pins and 2 keys: diff --git a/src/config_keybrd.h b/src/config_keybrd.h index 51d922b..6c191b4 100644 --- a/src/config_keybrd.h +++ b/src/config_keybrd.h @@ -13,9 +13,9 @@ Using smaller types on a 32-bit uC (Teensy LC) would accomplish nothing. For Scanner_ShiftRegs74HC165, Scanner_ShiftRegs74HC165::readPinCount For Scanner_Port, cover the last 1 bit in Scanner_Port::strobePin */ -//typedef uint8_t read_pins_t; +typedef uint8_t read_pins_t; //typedef uint16_t read_pins_t; -typedef uint32_t read_pins_t; +//typedef uint32_t read_pins_t; /* SAMPLE_COUNT_MACRO is used in Debouncer_Samples.h SAMPLE_COUNT_MACRO = 4 is very reliable for a keyboard.