Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaelsarduino/9c6559fe4ccb7804b807 to your computer and use it in GitHub Desktop.
Save michaelsarduino/9c6559fe4ccb7804b807 to your computer and use it in GitHub Desktop.
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
Serial.begin(115200);
lcd.begin(20, 4);
lcd.print("Tomorrow");
delay(10000);
}
void loop() {
if(Serial.available() > 5)
{
String muell = Serial.readStringUntil('|');2
String mindestens = Serial.readStringUntil('|');
String maximal = Serial.readStringUntil('|');
lcd.setCursor(0, 1);
lcd.print("Min. Temp.:");
lcd.print(mindestens);
lcd.print("C");
lcd.setCursor(0,2);
lcd.print("Max. Temp.:");
lcd.print(maximal);
lcd.print("C");
}
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment