Wiki source for reportOnDisplay


Show raw source

[[FunctionsAndClasses]]
======reportOnDisplay======

%%(cpp;1)
/// www.officinecibernetiche.net
// Display some datas on display
// usage: displayMessages(column, row, message)

void reportOnDisplay() //SOSTITUIRE LE VARIABILI GLOBALI CON ALTRE LOCALI
{
String message1;
String message2;
String message3;
String message4;
int str_len;
char* date = get_date();
char* time = get_time();

tft.fillScreen(ST7735_BLACK);
tft.setTextColor(ST7735_GREEN);

Serial.println(temper);
Serial.println(hum);
Serial.println(TH_char_array);

message1 = "Date: "; message1 += date;
//str_len = message1.length() + 1;
message1.toCharArray(char_array1, 18);
displayMessages(0, 10, char_array1);

message2 = "Time: "; message2 += time;
//str_len = message2.length() + 1;
message2.toCharArray(char_array2, 18);
displayMessages(0, 30, char_array2);

message3 = "Temp: "; message3 += Temperatura; message3 += " ^C";
message3.toCharArray(char_array3, 18);
displayMessages(0, 50, char_array3);

message4 = "Humi: "; message4 += Umidita; message4 += " %";
message4.toCharArray(char_array4, 18);
displayMessages(0, 60, char_array4);
}

%%
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki