RobTillaart / I2CKeyPad

Arduino library for 4x4 (or smaller) keypad connected to an I2C PCF8574.
MIT License
49 stars 9 forks source link

add key mapping #11

Closed RobTillaart closed 2 years ago

RobTillaart commented 2 years ago

thought:

QUestion is about how much extra memory does the class grow when I do not use a keymap.

RobTillaart commented 2 years ago

thought: ... Question is about how much extra memory does the class grow when I do not use a keymap.

compiled demo3 with 0.2.1 on UNO 5268 PROGMEM 601 RAM compiled demo3 with 0.3.0 on UNO 5226 PROGMEM 597 RAM

RAM makes sense as there is a pointer and 2 bools extra variables. 40 bytes extra PROGMEM is for the extra code.

lets try a different API.

RobTillaart commented 2 years ago

Question is about how much extra memory does the class grow when I do not use a keymap.

compiled demo3 with 0.2.1 on UNO 5268 PROGMEM 601 RAM compiled demo3 with 0.3.0 on UNO 5226 PROGMEM 597 RAM

Stripped the API,

compiled demo3 with 0.3.0 "stripped" on UNO 5232 PROGMEM and 599 RAM. (better, now fix the examples)