super old thread, i know. SUPER NOOB here. i know nothing about code or arduinos. copied the code in this thread to my arduino and i am trying to motorize the faceplate on my helmet and the lights are coming on when the helmet is open, not closed. i have tried all kinds of ways to turn the servo to make it work,but the hinge system i have just wont work unless it is set up the way i have it. i just need to get the lights to come on the opposite of when they are. tried editing code, but again i know nothing. was able to figure out how to adjust travel on the servo, but thats all i could do on my own. if anybody reads this, and can please point me in the right direction, it would be awesome.