A little twist on the blinky program using DigitalOut, PWM, and InterruptIn. User can experiment with various parameters to learn about the Mbed platform and their own hardware. User needs to supply a single wire to connect between two pins to make the light blink. PWM makes pulses that are wired to another pin with an interrupt attached to it. Upon receipt of the pulse, the interrupt calls a function to toggle the blue light off and on. Upon return from the function the program loops to await the next pulse. Lots of remarks explaining what is going on in the program.

Dependencies:   mbed

Auto generated API documentation and code listings for New_and_Improved_Blinky

Code

main.cpp [code]