Lights on. Lights…

Derp. They didn’t turn off. I had written some ghetto code to turn on the lights (and off again) on a standard schedule. 

The on worked,  but add I’m sure we can all guess from the title, the off again failed. Since it was the world’s largest latest method, I can must assume that it was a basic error that’s achievable in C. What I did originally was a database that had 24 values, one for every hour. A one turned it on, and a zero caused it to do a half second pulse. Since its been on for quite a bit now (four hours longer than it should have), I must assume that is using the Boolean definitionof not zero being false. Tonight, I’ll chuckle the lights by hand. Tomorrow, I’m thinking I might bite the bullet and start moving everything over to running on a Pi. It seems like a bit of overkill.

Then again, for future purposes, it might be the cure to the future ills that I’m already seeing. At a minimum, I need a boatload of analog read and write pins. If I go with a Pi, I’d have more pins, Wi-Fi, and a camera port.

Or I could stay with it being a stupid system.