Why does the OLED display flicker when using the SSD1306Ascii.h library? The Adafruit library does not have this issue, but I've been told uses a lot of memory and so I'm trying to use Ascii to conserve memory resources. The problem manifests itself when the void loop() begins. When using similar code with the Adafruit library, the display stays steady as a rock.
Here is my example code. many thanks in advance.
// Edit AVRI2C_FASTMODE in SSD1306Ascii.h to change the default I2C frequency.
#include "SSD1306Ascii.h"
#include "SSD1306AsciiAvrI2c.h"
#define I2C_ADDRESS 0x3C
// Define proper RST_PIN if required.
#define RST_PIN -1
SSD1306AsciiAvrI2c oled;
//------------------------------------------------------------------------------
void setup() {
#if RST_PIN >= 0
oled.begin(&Adafruit128x64, I2C_ADDRESS, RST_PIN);
#else // RST_PIN >= 0
oled.begin(&Adafruit128x64, I2C_ADDRESS);
#endif // RST_PIN >= 0
// Call oled.setI2cClock(frequency) to change from the default frequency.
oled.setFont(System5x7);
oled.clear();
oled.print("Hello World!");
delay(2000);
oled.clear();
}
//------------------------------------------------------------------------------
void loop() {
oled.setFont(System5x7);
oled.print("Hello fuuuzzzzyyyy world!");
delay(1);
oled.clear();
}