A few more tips

  • Use list generators when possible rather than creating lists (for example use range() to create a sequential list of values on the fly without assigning it to a variable).
  • “pystack exhausted” errors - you may be doing something with a lot of of levels of function calls or recursion. Maybe try another way of solving your problem. Other times the cause is unclear, ask for guidance on the help-with-CircuitPython channel on discord: https://adafru.it/discord

This guide was first published on Apr 17, 2021. It was last updated on Apr 17, 2021.

This page (Memory: Additional memory-saving tips and resources) was last updated on Apr 30, 2021.

Text editor powered by tinymce.