I got a arduino code for flipping a servo. And I tried, with the glory of the gathered internet knowledge to add a "light the LED when the gyro reach X position and shut it off when it goes back to Y" kind of thing.
I got it to work for a while, then it stopped lighting/shutting the LED off randomly, I do not know why. And for a while it only lit up when I pushed the button or held it in to start the servo code.
Anyone willing to help me out?