T-DeckLoader/lib/AceButton/tests
2024-06-09 01:14:09 -04:00
..
AceButtonTest init 2024-06-09 01:14:09 -04:00
auniter.ini init 2024-06-09 01:14:09 -04:00
Jenkinsfile init 2024-06-09 01:14:09 -04:00
README.md init 2024-06-09 01:14:09 -04:00

AceButtonTest

These unit tests depend on AUnit, which is a derivative of ArduinoUnit. As explained in issue #70, the original ArduinoUnit consumes too much flash memory. The AceButtonTest.ino sketch generates 53kB of flash with ArduinoUnit, which no longer fits inside the 32kB space of an Arduino Nano (ATmega328P). AUnit decreases the flash size for AceButtonTest by 66%, consuming only 18kB.

I tried splitting the tests into 6 smaller sketches, which worked for a while. But when I started testing the library on multiple platforms (e.g. Arduino, Teensy, ESP8266), it became too cumbersome to repeatedly run 6 sketches across these platforms.