Browse Source

document

tags/v0.6.0
wolfv6 7 years ago
parent
commit
9902798d63
2 changed files with 7 additions and 2 deletions
  1. 5
    0
      doc/keybrd_library_user_guide.md
  2. 2
    2
      src/config_keybrd.h

+ 5
- 0
doc/keybrd_library_user_guide.md View File

@@ -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:

+ 2
- 2
src/config_keybrd.h 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_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.