Hello, I d like to know if is possible print two lines simultaneous in oled display
one line goes in up right side of the oled display, another in center
display.setCursor(10, 20);
display.println(data);
display.display();
my intent is print with data the battery voltage.
float getvoltage()
{
int readValue = analogRead(voltPin); //read pin A0 value
voltage = readValue * (5.0 / 1023.0); //calculates real world voltage
Serial.print(“Voltage = “); //show “voltage before value on serial monitor
Serial.println(voltage); //show value on serial monitor
delay(250); //250ms delay
return voltage;
}