dstroy0 / InputHandler

Arduino input handler
https://dstroy0.github.io/InputHandler/
GNU General Public License v3.0
1 stars 0 forks source link

Fix examples #20

Closed dstroy0 closed 2 years ago

dstroy0 commented 2 years ago

The basic GetCommandFromStream examples are ok, the other examples need work.

basic/GetCommandFromStream.ino: (avr/mega2560) Sketch uses 9656 bytes (3%) of program storage space. Maximum is 253952 bytes. Global variables use 319 bytes (3%) of dynamic memory, leaving 7873 bytes for local variables. Maximum is 8192 bytes.

dstroy0 commented 2 years ago

NestedCommands.ino is updated for arduino and esp, (mega2560) Sketch uses 10202 bytes (4%) of program storage space. Maximum is 253952 bytes. Global variables use 833 bytes (10%) of dynamic memory, leaving 7359 bytes for local variables. Maximum is 8192 bytes.

512 bytes are for the output buffer (321 bytes using flash strings and the instantiated Serial object).

adding __attribute__((packed)) to the Parameters struct does not reduce PGM space on atmel.

(SAMD51) 17164 bytes (3%) of program storage space. Maximum is 507904 bytes.

adding __attribute__((packed)) to the Parameters struct does not reduce PGM space on SAMD.

(ESP32) Sketch uses 219129 bytes (16%) of program storage space. Maximum is 1310720 bytes. Global variables use 12776 bytes (3%) of dynamic memory, leaving 314904 bytes for local variables. Maximum is 327680 bytes.

adding __attribute__((packed)) to the Parameters struct INCREASES PGM space on ESP32.

Sketch uses 219209 bytes (16%) of program storage space. Maximum is 1310720 bytes.

dstroy0 commented 2 years ago

Updated the rest of the examples.