Serial.println(F("should appear in the library header (Adafruit_TFT.h)."));
Serial.println(F("If using the breakout board, it should NOT be #defined!"));
Serial.println(F("Also if using the breakout, double-check that all wiring"));
Serial.println(F("matches the tutorial."));
return;
}*/
tft.begin(0x9341);
tft.setRotation(1);
if(!fastboot){
@ -862,16 +844,46 @@ void setup(void) {
printConsoleText("Booting GreenhouseOS...||");
delay(250);
}
//printConsoleText("Stuff.co.nz: Latest breaking news NZ;https://www.stuff.co.nz/;Breaking news and videos of today's latest news stories from around New Zealand, including up to date weather, World, sport, business, Entertainment, ...;National · World · Sport · Stuff Nation;Top stories;Tiny town straddling state highway pushes for safer speeds;Stuff.co.nz·3 hours ago;What is really driving the 'vilification' of Meghan Markle?;Stuff.co.nz·1 hour ago;Struggling Julian Savea told to leave Toulon by angry boss - report;Stuff.co.nz·2 hours ago;More for stuff;Web results;National News | Stuff.co.nz");
//printConsoleText("About 1,780,000,000 results (0.74 seconds) ;Search Results;Web results;World of Warcraft;https://worldofwarcraft.com/;Join thousands of mighty heroes in Azeroth, a world of magic and limitless adventure.;Getting Started - WoW · Eu · Battle for Azeroth · Battle for Azeroth - Media - WoW;WOW! Internet Cable and Phone - Bundle offers and support;https://www.wowway.com/;Explore offers with WOW! Internet, Cable TV and Home Phone. Find the offer and t");
//printConsoleText("#include <string.h>;#include <conio.h>;#include <ctype.h>;#include <windows.h>;int main(int argc, char *argv[]);{;char sentzz[]=\"HELLO I AM A TEXT SCROLL\"; \";int x; //special dialogue;int size; ;size=strlen(senta); for(x=0;x<size;x++); { ; Sleep(40); printf(\"%c\",senta[x]); }; getch(); }");
//clearLog();
//printConsoleText("In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing any one,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'");
//printConsoleText("He didnt say any more but weve always been unusually communicative in a reserved way, and I understood that he meant a great deal more than that. In consequence Im inclined to reserve all judgments, a habit that has opened up many curious natures to me and also made me the victim of not a few veteran bores. The abnormal mind is quick to detect and attach itself to this quality when it appears in a normal person, and so it came about that in college I was unjustly accused of being a politician, because I was privy to the secret griefs of wild, unknown men. Most of the confidences were unsought-frequently I have feigned sleep, preoccupation, or a hostile levity when I realized by some unmistakable sign that an intimate revelation was quivering on the horizon-for the intimate revelations of young men or at least the terms in which they express them are usually plagiaristic and marred by obvious suppressions. Reserving judgments is a matter of infinite hope.");
//delay(1000);
printConsoleText("[ OK ] Enabling powersaving features... ");// 53 characters wide
enablePS(3);
upd=true;
if(!soil1.begin(0x36)){
printConsoleText("[ INFO ] Soil sensor 1 unplugged.");
s1=false;
}else{
Stringout="[ OK ] Soil sensor 1 connected. Version: ";
out+=(soil1.getVersion(),HEX);
printConsoleText(out);
s1=true;
}
if(!soil2.begin(0x37)){
printConsoleText("[ INFO ] Soil sensor 2 unplugged.");
s2=false;
}else{
Stringout="[ OK ] Soil sensor 2 connected. Version: ";
out+=(soil2.getVersion(),HEX);
printConsoleText(out);
s2=true;
}
if(!soil3.begin(0x38)){
printConsoleText("[ INFO ] Soil sensor 3 unplugged.");
s3=false;
}else{
Stringout="[ OK ] Soil sensor 3 connected. Version: ";
out+=(soil3.getVersion(),HEX);
printConsoleText(out);
s3=true;
}
if(!soil4.begin(0x39)){
printConsoleText("[ INFO ] Soil sensor 4 unplugged.");
s4=false;
}else{
Stringout="[ OK ] Soil sensor 4 connected. Version: ";