Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Grid reads/writes for EEPROM/RAM #7

Closed
wraybowling opened this issue Aug 31, 2020 · 0 comments
Closed

Optimize Grid reads/writes for EEPROM/RAM #7

wraybowling opened this issue Aug 31, 2020 · 0 comments

Comments

@wraybowling
Copy link
Member

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

  • 3 channels
  • 3 layers
  • 16 quarter notes
  • 24 pulses per quarter note

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.

wraybowling added a commit that referenced this issue Sep 1, 2020
...though now the module is acting as though it has died!
@wraybowling wraybowling mentioned this issue Sep 2, 2020
4 tasks
wraybowling added a commit that referenced this issue Sep 2, 2020
reading and writing are working again. Apparently, don't use uint8_t on for loop iterators! Now cleaning up some data corruption.
wraybowling added a commit that referenced this issue Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant