Is the problem in the code or in the OLED screen?

If you want a couple more bytes of memory, you can wrap all your string literals with the F() maco...

      ///display.println("Your Output:");
      display.println(F("Your Output:"));

You can also eliminate the entire Output array. Just move all the computation of the calculateOutput() inside of displayOutput() and then calculate and display 1 char at a time.

1 Like