#include <LiquidCrystal.h>
/* Varibles for Data buffors from UART*/
String IP= "192.168.1.1";//basic ip adress
String SSID= "SKA NET";//basic SSID adress
short int singlaStrength=0; //basic signal strength;
short int CPU=25; //useage of cpu
short int MEM=30; //useage of Robot (?) memory
float BattVoltage=12.3; //Voltage of battery
/* LCD config parameters */
const unsigned short int rs=12,rw=11,en=10,d4=5,d5=4,d6=3,d7=2;//constant- number of pins which are connected to LCD
LiquidCrystal lcd (rs,rw,en,d4,d5,d6,d7); //constructor of LCD
unsigned short int number_of_charts=20; // number of charts in one row
unsigned short int row=4; // Number of rows
void welcomeScreen() {
lcd.home();
String line1Print=IP+"xx"+SSID; // first line of welcome screen
String line2Print="||||)"+String(BattVoltage)+"V"+"status Here"; // Battery + comms
String line3Print="CPU"+String(CPU)+"%"+"MEM"+String(MEM)+"%M"+"sdat"; // load data
String line4Print=IP+"xx"+SSID; // select menu
lcd.print(line1Print);
lcd.setCursor(0,1);
lcd.print(line2Print);
lcd.setCursor(0,2);
lcd.print(line3Print);
}
void setup() {
// put your setup code here, to run once:
lcd.begin(number_of_charts,row);// starting command to prepare arduino fo using Lcd with defined number of charts and rows
/*lcd.home();//set cursor to 0,0*/
lcd.setCursor(7,2);
//visibility check should be here
lcd.print("R D Y"); // print on display is ok
delay(1000);
lcd.clear();
//zrobić zamiennik za delay coś na milis i z referecja do zmiennej magazynujacej czas//
}
void loop() {
// put your main code here, to run repeatedly:
welcomeScreen(); // starts with this screen
}