@pert @johnwasser
Ok, maybe I was too cryptic to get a good answer. Let me clarify.
[code]
#include <LiquidCrystal.h>
//Include^
//Init
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); /*Initialize the LCD and
tell it which pins is
to be used for communicating*/
//Global Var
#define contra 9 //Define the pin that controls the contrast of the screen
#define bri 10 //Define the pin the controls the brightness of the screen
//Both pins are PWM so you can analogWrite to them and have them output a variable value
void setup() { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// put your setup code here, to run once:
lcd.begin(16, 2); //Tell the LCD that it is a 16x2 LCD
pinMode(contra, OUTPUT); //set pin 9 to OUTPUT
pinMode(bri, OUTPUT); //Set pin 10 to OUTPUT
//pinMode-ing OUTPUT makes the specified pin output power
digitalWrite(contra, LOW); /*outputs no power to the contrast pin.
this lets you see the words*/
analogWrite(bri, 255); //Outputs full power to the screen brightness LED
lcd.print(" You have an");
lcd.setCursor(0, 1);
lcd.print(" EMAIL ");
} //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void loop() { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lcd.clear();
lcd.setCursor(0, 0);
String s = " You have an ";
for (int i = 0; i < s.length(); i++) {
lcd.print(s[i]);
delay(500);
}
lcd.setCursor(0, 1);
String e = " EMAIL!";
for (int i = 0; i < e.length(); i++) {
lcd.print(e[i]);
delay(500);
}
} //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[/code]
No issues with this code, can verify, compile, and upload to arduino.
However, when I add #include <ezTime.h>
[code]
#include <LiquidCrystal.h>
#include <ezTime.h>
//Include^
//Init
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); /*Initialize the LCD and
tell it which pins is
to be used for communicating*/
//Global Var
#define contra 9 //Define the pin that controls the contrast of the screen
#define bri 10 //Define the pin the controls the brightness of the screen
//Both pins are PWM so you can analogWrite to them and have them output a variable value
void setup() { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// put your setup code here, to run once:
lcd.begin(16, 2); //Tell the LCD that it is a 16x2 LCD
pinMode(contra, OUTPUT); //set pin 9 to OUTPUT
pinMode(bri, OUTPUT); //Set pin 10 to OUTPUT
//pinMode-ing OUTPUT makes the specified pin output power
digitalWrite(contra, LOW); /*outputs no power to the contrast pin.
this lets you see the words*/
analogWrite(bri, 255); //Outputs full power to the screen brightness LED
lcd.print(" You have an");
lcd.setCursor(0, 1);
lcd.print(" EMAIL ");
} //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void loop() { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lcd.clear();
lcd.setCursor(0, 0);
String s = " You have an ";
// if time between 8 am and 6pm, uk folks are alright to contact
for (int i = 0; i < s.length(); i++) {
lcd.print(s[i]);
delay(500);
}
lcd.setCursor(0, 1);
String e = " EMAIL!";
for (int i = 0; i < e.length(); i++) {
lcd.print(e[i]);
delay(500);
}
} //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[/code]
Not only does ezTime not work, but neither does LiquidCrystal.
The errror is as follows:
Using board 'uno' from platform in folder: C:\Users\tom_g\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Using core 'arduino' from platform in folder: C:\Users\tom_g\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Detecting libraries used...
"C:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\tom_g\\AppData\\Local\\Temp\\arduino-sketch-636370EFEAD2D1438107F4489F470816\\sketch\\EmailNotification.ino.cpp" -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal.h@1.0.7]
ResolveLibrary(LiquidCrystal.h)
-> candidates: [LiquidCrystal.h@1.0.7]
"C:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal.h\\src" "C:\\Users\\tom_g\\AppData\\Local\\Temp\\arduino-sketch-636370EFEAD2D1438107F4489F470816\\sketch\\EmailNotification.ino.cpp" -o nul
Alternatives for ezTime.h: [ezTime.h@0.8.3]
ResolveLibrary(ezTime.h)
-> candidates: [ezTime.h@0.8.3]
"C:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal.h\\src" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\ezTime.h\\src" "C:\\Users\\tom_g\\AppData\\Local\\Temp\\arduino-sketch-636370EFEAD2D1438107F4489F470816\\sketch\\EmailNotification.ino.cpp" -o nul
"C:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal.h\\src" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\ezTime.h\\src" "C:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal.h\\src\\LiquidCrystal.cpp" -o nul
"C:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal.h\\src" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\ezTime.h\\src" "C:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\ezTime.h\\src\\ezTime.cpp" -o nul
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
-> candidates: [EEPROM@2.0]
"C:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal.h\\src" "-IC:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\ezTime.h\\src" "-IC:\\Users\\tom_g\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\libraries\\EEPROM\\src" "C:\\Users\\tom_g\\OneDrive\\Documents\\Arduino\\libraries\\ezTime.h\\src\\ezTime.cpp" -o nul
Alternatives for WiFi.h: []
ResolveLibrary(WiFi.h)
-> candidates: []
Using library LiquidCrystal.h at version 1.0.7 in folder: C:\Users\tom_g\OneDrive\Documents\Arduino\libraries\LiquidCrystal.h
Using library ezTime.h at version 0.8.3 in folder: C:\Users\tom_g\OneDrive\Documents\Arduino\libraries\ezTime.h
Using library EEPROM at version 2.0 in folder: C:\Users\tom_g\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\libraries\EEPROM
Compilation error: Error: 2 UNKNOWN: exit status 1
I have the LiquidCrystal and ezTime header files in Documents/Arduino/Libraries.
My thought would be that ezTime includes header files that I don't have installed but not sure why that would cause issues with LiquidCrystal.