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

Download repository: zip gz

Files at revision 0:faab03ae0c8a

Name Size Actions
[up]
main.cpp 2784 Revisions Annotate
mbed.bld 65 Revisions Annotate