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.
This is my code
When I run this, the LED brightness changes as expected, but when I measure the pin outputs using an oscilloscope, I get weird readings. Does anyone know what could be causing this problem?
Edit Also, would something like following work?
In other words, does the pin=0.5 need to be placed in a infinite loop for it to work?