SwampFlux / tri-plus-ger

Alternative firmware for Qu-Bit Tri-ger
GNU General Public License v3.0
3 stars 0 forks source link

Optimize Grid reads/writes for EEPROM/RAM #7

Closed wraybowling closed 4 years ago

wraybowling commented 4 years ago

Storing a large multidimensional array of booleans for the grids was quick and easy but

multiplied out to 3,456 bits which is more than the 2048 (2KiB) of RAM available on the ATMega328.

Thankfully there are 1024 8-bit bytes of EEPROM and the grids needs to be stored anyway, but that will also slow things down. Fix all these at once.