Created
February 1, 2016 20:32
-
-
Save michaelsarduino/9c6559fe4ccb7804b807 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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