Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Right so I've been looking at controlling some devices using PWM, so to start off I thought an LED connected to the output would keep things simple. My code is intended to upon startup turn led1 on for a second and off for a second. Then if "go" is pressed illuminate it constantly. (this also turns on the surface mount LED on Mbed (boardled) on just to indicate that that point in the code has reached. If "go" is then released after 5 seconds led1 should then return to being on for one second and off for another. However regardless of whether the button is pressed or not led1 stays constantly illuminated. I've checked the code over and over and have consulted relevant areas of the handbook and cookbook but cant find a solution, any ideas??
Cheers
Ollie
/media/uploads/olmasters/pwm_prog_1_lpc1768.bin