Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:a1d256e2cd41
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 21 14:21:25 2015 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +DigitalOut enable(D2); +PwmOut step(D3); +PwmOut led(LED2); +DigitalInOut mybut(USER_BUTTON); + +int main() { + + enable=1; + step.period_ms(10); + step.pulsewidth_ms(5); + while(1){ + + enable=0; + wait(0.1); + enable=1; + wait(0.4); + } +} \ No newline at end of file