1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <Wire.h> #include "i2c_lcd.h" void setup() { Serial.begin(19200); Wire.begin(); //this is to start the initilize the lcd screen portexpanderinit(); delay(200); LCDinit(); delay(500); LCDclear(); LCDprint("start"[5]); } void loop() { if (Serial.available()) { LCDprint(Serial.read()); } }