Trying to figure out how to update text to a 128x64 OLED using the u8x8 library for Arduino. The text changes in real time using a potentiometer.
The above solution causes too much blinking, thought maybe there was a better way to update values to the OLED in real time without using this method.
Sincere thanks for any help,
TonyAm
C-like:
void setup() {
u8x8.begin();
u8x8.setPowerSave(0);
}
//* Writing to the LCD*//
void LCDWrite()
{
//setFont(u8x8_font_chroma48medium8_r);
u8x8.setFont(u8x8_font_px437wyse700a_2x2_r);
u8x8.drawString(0,1,"PHASE3");
u8x8.setInverseFont(1);
// // *Display results of the keySelect() to the Oled
// // There are 12 integers returned from keySelect(), numbered 0-11.
// // Convert the 12 integer value of keySelect() to correspond to each key in music notation
char *keys[] = {"Am/C", "A#m/C#", "Bm/D", "Cm/D#", "C#m/E", "Dm/F", "D#m/F#", "Em/G", "Fm/G#", "F#m/A", "Gm/A#", "G#m/B"};
u8x8.drawString(0,3,keys[keyPrint]);
delay(20);
u8x8.drawString(0,3," "); //this causes too much blinking
Sincere thanks for any help,
TonyAm
Last edited by a moderator: