Skip to content
Snippets Groups Projects
Commit 603b643c authored by 13515029 - Finiko Kasula Novenda's avatar 13515029 - Finiko Kasula Novenda
Browse files

Add Print to LCD

parent 1ef5195a
Branches
No related merge requests found
#include <ArduinoJson.h>
#include <LiquidCrystal.h>
bool isSuccess;
int year;
......
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void PrintToLCD(const char* text);
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
lcd.autoscroll();
}
void loop() {
// put your main code here, to run repeatedly:
}
void PrintToLCD(const char* text) {
lcd.print(text);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment