When I try to upload it I get the following error for this line of code...
Code: Select all
static time_t LastATO=millis(); // For de-bounced ATO
And this is what I get in the Verbose read out...'time_t' does not name a type
Thanks for the help again.The following features were automatically added:
Watchdog Timer
Version Menu
The following features were detected:
java.io.FileNotFoundException: /Users/Steves-iMac/Documents/Arduino/Code/update/feature.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at java.io.FileReader.<init>(FileReader.java:41)
at processing.app.Sketch.ProcessFeature(Sketch.java:1373)
at processing.app.Sketch.build(Sketch.java:1766)
at processing.app.Sketch.exportApplet(Sketch.java:1797)
at processing.app.Sketch.exportApplet(Sketch.java:1783)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2357)
at java.lang.Thread.run(Thread.java:695)
Number of Relay Expansion Modules: 1
Standard Menu
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1705)
at java.io.File.createTempFile0(File.java:1726)
at java.io.File.createTempFile(File.java:1803)
at processing.app.Base.saveFile(Base.java:2189)
at processing.app.Sketch.ProcessFeature(Sketch.java:1456)
at processing.app.Sketch.build(Sketch.java:1766)
at processing.app.Sketch.exportApplet(Sketch.java:1797)
at processing.app.Sketch.exportApplet(Sketch.java:1783)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2357)
at java.lang.Thread.run(Thread.java:695)
/Applications/Reef_Angel.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I/Applications/Reef_Angel.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Reef_Angel.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Applications/Reef_Angel.app/Contents/Resources/Java/libraries/Wire -I/Applications/Reef_Angel.app/Contents/Resources/Java/libraries/SoftwareSerial /var/folders/vj/m9jly2mx411fbfrc8qdg1z2c0000gn/T/build4342936369941451460.tmp/Steves_Backup.cpp -o /var/folders/vj/m9jly2mx411fbfrc8qdg1z2c0000gn/T/build4342936369941451460.tmp/Steves_Backup.cpp.o
Steves_Backup.cpp:1:32: warning: ReefAngel_Features.h: No such file or directory
Steves_Backup.cpp:2:21: warning: Globals.h: No such file or directory
Steves_Backup.cpp:3:21: warning: RA_Wifi.h: No such file or directory
Steves_Backup.cpp:5:21: warning: OneWire.h: No such file or directory
Steves_Backup.cpp:6:18: warning: Time.h: No such file or directory
Steves_Backup.cpp:7:23: warning: DS1307RTC.h: No such file or directory
Steves_Backup.cpp:8:28: warning: InternalEEPROM.h: No such file or directory
Steves_Backup.cpp:9:25: warning: RA_NokiaLCD.h: No such file or directory
Steves_Backup.cpp:10:20: warning: RA_ATO.h: No such file or directory
Steves_Backup.cpp:11:25: warning: RA_Joystick.h: No such file or directory
Steves_Backup.cpp:12:17: warning: LED.h: No such file or directory
Steves_Backup.cpp:13:27: warning: RA_TempSensor.h: No such file or directory
Steves_Backup.cpp:14:19: warning: Relay.h: No such file or directory
Steves_Backup.cpp:15:20: warning: RA_PWM.h: No such file or directory
Steves_Backup.cpp:16:19: warning: Timer.h: No such file or directory
Steves_Backup.cpp:17:20: warning: Memory.h: No such file or directory
Steves_Backup.cpp:19:23: warning: RA_Colors.h: No such file or directory
Steves_Backup.cpp:20:29: warning: RA_CustomColors.h: No such file or directory
Steves_Backup.cpp:21:22: warning: Salinity.h: No such file or directory
Steves_Backup.cpp:22:16: warning: RF.h: No such file or directory
Steves_Backup.cpp:23:16: warning: IO.h: No such file or directory
Steves_Backup.cpp:24:17: warning: ORP.h: No such file or directory
Steves_Backup.cpp:25:16: warning: AI.h: No such file or directory
Steves_Backup.cpp:26:16: warning: PH.h: No such file or directory
Steves_Backup.cpp:27:24: warning: WaterLevel.h: No such file or directory
Steves_Backup.cpp:28:22: warning: Humidity.h: No such file or directory
Steves_Backup.cpp:29:20: warning: DCPump.h: No such file or directory
Steves_Backup.cpp:30:23: warning: ReefAngel.h: No such file or directory
Steves_Backup.cpp:43:1: warning: "Unused" redefined
Steves_Backup.cpp:38:1: warning: this is the location of the previous definition
Steves_Backup.cpp:45:1: warning: "Unused" redefined
Steves_Backup.cpp:43:1: warning: this is the location of the previous definition
Steves_Backup.cpp:46:1: warning: "Unused" redefined
Steves_Backup.cpp:45:1: warning: this is the location of the previous definition
Steves_Backup.cpp:47:1: warning: "Unused" redefined
Steves_Backup.cpp:46:1: warning: this is the location of the previous definition
Steves_Backup:57: error: 'time_t' does not name a type
Steves_Backup.cpp: In function 'void setup()':
Steves_Backup:65: error: 'ReefAngel' was not declared in this scope
Steves_Backup:69: error: 'Port4Bit' was not declared in this scope
Steves_Backup:70: error: 'Port1Bit' was not declared in this scope
Steves_Backup:72: error: 'Port2Bit' was not declared in this scope
Steves_Backup:76: error: 'T1_PROBE' was not declared in this scope
Steves_Backup:79: error: 'InternalMemory' was not declared in this scope
Steves_Backup:93: error: 'Sync' was not declared in this scope
Steves_Backup:99: error: 'Box1_Port8' was not declared in this scope
Steves_Backup.cpp: In function 'void loop()':
Steves_Backup:109: error: 'ReefAngel' was not declared in this scope
Steves_Backup:113: error: 'PWMSlope' was not declared in this scope
Steves_Backup:125: error: 'hour' was not declared in this scope
Steves_Backup:128: error: 'MoonPhase' was not declared in this scope
Steves_Backup:134: error: 'Box1_Port7' was not declared in this scope
Steves_Backup:135: error: 'weekday' was not declared in this scope
Steves_Backup:135: error: 'dowMonday' was not declared in this scope
Steves_Backup:135: error: 'hour' was not declared in this scope
Steves_Backup:135: error: 'minute' was not declared in this scope
Steves_Backup:138: error: 'weekday' was not declared in this scope
Steves_Backup:138: error: 'dowWednesday' was not declared in this scope
Steves_Backup:138: error: 'hour' was not declared in this scope
Steves_Backup:138: error: 'minute' was not declared in this scope
Steves_Backup:141: error: 'weekday' was not declared in this scope
Steves_Backup:141: error: 'dowFriday' was not declared in this scope
Steves_Backup:141: error: 'hour' was not declared in this scope
Steves_Backup:141: error: 'minute' was not declared in this scope
Steves_Backup:144: error: 'Box1_Port6' was not declared in this scope
Steves_Backup:145: error: 'weekday' was not declared in this scope
Steves_Backup:145: error: 'dowFriday' was not declared in this scope
Steves_Backup:145: error: 'hour' was not declared in this scope
Steves_Backup:145: error: 'minute' was not declared in this scope
Steves_Backup:156: error: 'now' was not declared in this scope
Steves_Backup:160: error: 'now' was not declared in this scope
Steves_Backup:165: error: 'now' was not declared in this scope
Steves_Backup:165: error: 'SECS_PER_DAY' was not declared in this scope
Steves_Backup:170: error: 'FEEDING_MODE' was not declared in this scope
Steves_Backup:173: error: 'now' was not declared in this scope
Steves_Backup:176: error: 'now' was not declared in this scope
Steves_Backup:178: error: 'Box1_Port2' was not declared in this scope
Steves_Backup:182: error: 'Box1_Port2' was not declared in this scope
Steves_Backup:198: error: 'now' was not declared in this scope
Steves_Backup:206: error: 'time_t' does not name a type
Steves_Backup:207: error: 'WATERCHANGE_MODE' was not declared in this scope
Steves_Backup:207: error: 'wcTimer' was not declared in this scope
Steves_Backup:210: error: 'wcTimer' was not declared in this scope
Steves_Backup:241: error: 'ReefCrest' was not declared in this scope
Steves_Backup:241: error: 'Gyre' was not declared in this scope
Steves_Backup:241: error: 'Lagoon' was not declared in this scope
Steves_Backup:241: error: 'Constant' was not declared in this scope
Steves_Backup:241: error: 'TidalSwell' was not declared in this scope
Steves_Backup:241: error: 'ShortPulse' was not declared in this scope
Steves_Backup:241: error: 'LongPulse' was not declared in this scope
Steves_Backup:241: error: 'Else' was not declared in this scope
Steves_Backup:243: error: 'SECS_PER_DAY' was not declared in this scope
Steves_Backup:250: error: 'FEEDING_MODE' was not declared in this scope
Steves_Backup:255: error: 'InternalMemory' was not declared in this scope
Steves_Backup:256: error: 'NutrientTransport' was not declared in this scope
Steves_Backup:257: error: 'SECS_PER_DAY' was not declared in this scope
Steves_Backup:260: error: 'InternalMemory' was not declared in this scope
Steves_Backup:263: error: 'InternalMemory' was not declared in this scope
Steves_Backup.cpp:156: warning: unused variable 'Kalk_Mixing'
Steves_Backup.cpp: In function 'void DrawCustomMain()':
Steves_Backup:289: error: 'ReefAngel' was not declared in this scope
Steves_Backup:291: error: 'pingSerial' was not declared in this scope
Steves_Backup:294: error: 'COLOR_DARKGOLDENROD' was not declared in this scope
Steves_Backup:294: error: 'DefaultBGColor' was not declared in this scope
Steves_Backup:301: error: 'ConvertNumToString' was not declared in this scope
Steves_Backup:303: error: 'DefaultFGColor' was not declared in this scope
Steves_Backup.cpp:288: warning: unused variable 'x'
Steves_Backup.cpp:288: warning: unused variable 'y'
It's been so long since I have done anything with it.
My current code can be found here http://forum.reefangel.com/viewtopic.php?f=11&t=3873
and at the link in my signature.