I am doing a project which needs to read a modbus slave device, write some values on a OLED 0.96’ display and some actions with outputs.
When I compile the program it shows Low memory available, stability problems may occur.
After running for about 10 minutes the program hangs.( Doesnt respond to inputs)
I tried commenting the OLED update part of the program and solving the low memory issue.
But I need to run the OLED too. My program is attached below.
Is there a better way to run the OLED without consuming much memory.
I am using a Arduino Genuinio/micro built for industrial environments. It programs as a normal arduino board.
display_V3_machine2.ino (9.34 KB)