Archived
1
0
This commit is contained in:
wolfv6 2016-09-03 11:15:57 -06:00
parent 6539cdadf9
commit 9902798d63
2 changed files with 7 additions and 2 deletions

View File

@ -172,6 +172,11 @@ Development-environment items to check:
Where 'KEY_A' could be any scan code. Where 'KEY_A' could be any scan code.
Fix this error from the Arduino IDE tool bar: Tools > USB Type > Keyboard + Mouse + Joystick 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: Sketch items to check:
* For each row, number of read pins in Row should equal number of keys. * 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: In this example, row_0 has 2 read pins and 2 keys:

View File

@ -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_ShiftRegs74HC165, Scanner_ShiftRegs74HC165::readPinCount
For Scanner_Port, cover the last 1 bit in Scanner_Port::strobePin 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 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 is used in Debouncer_Samples.h
SAMPLE_COUNT_MACRO = 4 is very reliable for a keyboard. SAMPLE_COUNT_MACRO = 4 is very reliable for a keyboard.