Help Getting started again.

Share you PDE file with our community
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Sun Sep 04, 2016 6:04 pm
I switched over from a PC to a MAC and I think I have the software and the Bluetooth adapter setup properly, but something has changed since my last version of the library 1.1.1 (1/04/16 I believe) to the version that is on the MAC Download on the website (I'm not sure what version it is).

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


'time_t' does not name a type


And this is what I get in the Verbose read out...

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'


Thanks for the help again.
It's been so long since I have done anything with it.

My current code can be found here viewtopic.php?f=11&t=3873
and at the link in my signature.
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sun Sep 04, 2016 8:29 pm
Make sure to copy the ReefAngel folder from the download folder into your Documents folder.
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Sun Sep 04, 2016 9:55 pm
It is.

Image
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Thu Sep 08, 2016 2:28 pm
I re-put the Arduino folder into the Documents folder and I'm still receiving the same messages.
I noticed that the default folder for the sketch's in the update folder so I tried moving my sketch over to there and still received the same errors.

I even tried putting the code in the main Arduino folder.

All attempts gave me the same error messages when trying to compile and upload the code.

Any help is appreciated.
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Sep 08, 2016 2:46 pm
Can you check in Preferences where its pointing? What version of the IDE are you using? I need to update to the new one, could be why it's failing..
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Thu Sep 08, 2016 5:03 pm
It is pointing to /Users/Steves-iMac/Documents/Arduino/Code but I have tried /Users/Steves-iMac/Documents/Arduino/update and just /Users/Steves-iMac/Documents/Arduino.

Image

I'm not sure what you mean by what version of the IDE.
I've been away a while and forgot a lot.
The library code?
I don't know how to determine that.
Whatever is part of the download on the website.
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Sep 08, 2016 5:57 pm
It should just be Arduino
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Thu Sep 08, 2016 6:24 pm
I did try just Arduino with the sketch out in the Arduino folder and still the same results.
Image
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Sep 08, 2016 7:02 pm
If you click on Arduino and go to About Arduino it will tell you the version.... just curious if it's the old or new version... I haven't tried upgrading yet.. a bit nervous :)
User avatar
Posts: 5364
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Sep 08, 2016 7:11 pm
The version on the site is 1.1.3. I'm going to try and upgrade to this over the weekend.
Next

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 2 guests

cron