Arduino on Windows 10

Community contributed apps
Post Reply
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Arduino on Windows 10

Post by Appleseed »

Hi,

Hopefully this is the right place to post this and its not a repleat of the same question.

I am trying to update from the Reef Angel version of Arduno ot the Official release (currently 1.8.15) as the old version hangs and offten doesnt always find the com port for my bluetooth adapter.

in any case I tried following Curts guide and have got to the point where I get alot of errors similar to the Following when trying to compile my code;

255:17: error: 'class ReefAngelClass' has no member named 'RF'
ReefAngel.RF.SetMode

I was getting alot of other errors about global.h and others until I copied the github libraries to my Arduino folder in "My Documents\Arduino\libraries" directory . I dont know if this is the right or wrong thing to do.

For referance sake my controllers is a RA Plus.

Thanks

Andy
Image
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: Arduino on Windows 10

Post by Appleseed »

I figured it out, so I'll leave this here in case some other poor (non programmer) soul gets lost and find thier way here. Obviously admins feel free to delete this if it is duplicate/usless info.

The solution might have been obvious but it wasnt too me :roll:

As i was trying to run the "standard" Arduino IDE i hadent run the RA wizard so didnt have the flloiwng in my feature.h file which is in the Arduino\libraries\ReefAngel_Features directory.

#define SIMPLE_MENU
#define PAREXPANSION
#define RANET
#define HUMIDITYEXPANSION
#define MULTIWATERLEVELEXPANSION
#define WATERLEVELEXPANSION
#define PHEXPANSION
#define ORPEXPANSION
#define SALINITYEXPANSION
#define FONT_8x8
#define MAIN_2014
#define LEAKDETECTOREXPANSION
#define PWMEXPANSION
#define DCPUMPCONTROL
#define wifi
#define RFEXPANSION
#define AI_LED
#define DisplayLEDPWM
#define VersionMenu
#define WDT
Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Arduino on Windows 10

Post by binder »

I have another post that handles this topic specifically.
https://forum.reefangel.com/viewtopic.php?f=8&t=6978

This eliminates the need to do what you did. It does it all for you (although you do need to choose the menu entry to run it).
This is exactly what I do now. I can keep Arduino updated and also still generate my RA code (because I run custom code beyond the official libraries).
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: Arduino on Windows 10

Post by Appleseed »

I did follow your guide but not 100% sure where I went wrong.

I think it started to go wrong at the step "Goto Tools -> CB Reef Angel Process Sketch to run the features and labels generation."
I now think this needs to be run before running Sketch > upload ?
Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Arduino on Windows 10

Post by binder »

Appleseed wrote:I did follow your guide but not 100% sure where I went wrong.

I think it started to go wrong at the step "Goto Tools -> CB Reef Angel Process Sketch to run the features and labels generation."
I now think this needs to be run before running Sketch > upload ?
correct. you just run it before you compile the sketch. you really only need to run it once and any time you change the labels or add new features. however, running it before you compile your code is just fine. it doesn't take long to run.

Sent from my Pixel 2 using Tapatalk
Appleseed
Posts: 96
Joined: Sat Jun 30, 2012 9:21 am

Re: Arduino on Windows 10

Post by Appleseed »

thanks Curt,
Image
Post Reply