Dimming Lunar Hub on ATO Low

Do you have a question on how to do something.
Ask in here.
Post Reply
wolf8895
Posts: 5
Joined: Wed Feb 19, 2014 6:38 am

Dimming Lunar Hub on ATO Low

Post by wolf8895 »

Total noob question I'm sure, but I would like to run the Lunar Hub from my unused ATO Low pins. What would I add to my code to make that work?

Thanks in advance for any advice.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimming Lunar Hub on ATO Low

Post by rimai »

Use this:

Code: Select all

pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin, MoonPhase()*2.55);
Roberto.
wolf8895
Posts: 5
Joined: Wed Feb 19, 2014 6:38 am

Re: Dimming Lunar Hub on ATO Low

Post by wolf8895 »

Thank you so much!
Looking forward to getting everything dialed in the way I want. I'm sure I'll be adding the actual dimming hub later in the year when I get the nerve to tear into my lights.
Post Reply