Closed suculent closed 6 years ago
OK, so I've found this, which is almost an answer:
// Use DOUBLE BUFFERING by default
#ifndef OLEDDISPLAY_REDUCE_MEMORY
#define OLEDDISPLAY_DOUBLE_BUFFER
#endif
I've also solved my crash, it was caused by having OverlayCallback and FrameCallback defined dynamically inside a function.
How much free stack/heap does the lib require? It works for me in examples, but crashes on ui.init() when added to my full project. I’ve tried to delay the init from setup() to loop() with much more free stack available (4k stack, 23k heap), but it still won’t work.