Swampfox wrote:Binder I tried to upload the code, but it is saying "firmware.ino:22:1: error: expected initializer before 'void'void if (ReefAngel.LowATO.IsActive() ) {" It also had a error for no semi colon after the finial }, but I added it. I just don't know what to put in to fix there expected initializer.

Also what cause this when i try to upload to my controller?avrdude: stk500v2_ReceiveMessage(): timeoutavrdude: stk500v2_ReceiveMessage(): timeoutavrdude: stk500v2_ReceiveMessage(): timeoutavrdude: stk500v2_ReceiveMessage(): timeoutavrdude: stk500v2_ReceiveMessage(): timeoutavrdude: stk500v2_ReceiveMessage(): timeoutavrdude: stk500v2_getsync(): timeout communicating with programmerCould not program the board

You don't need a void keyword at all. This code gets place inside the loop() function. So I don't know where or how you came across as putting it in. The only thing I can think of is if you put the code in the wrong spot and had it outside of the loop() function. Then arduino is going to treat it as a custom function (which it is not).It needs to go after the "////// Place your custom code below here" line.

// This should always be the last line //ReefAngel.Portal( "binder" ); ReefAngel.ShowInterface();}

That is what the loop() should look like with the code added to it. This was an old revision of the code that I run on my controller (minus your ATO code).

As for the avrdude timeout, that can be various causes. Best suggestion is to keep the controller unplugged until you are certain you want to upload the code. Then plug it in. For whatever reason, arduino is timing out talking to the controller. It happens from time to time and I don't have a good reason why.