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
Fork of Turrett_Project by
Diff: main.cpp
- Revision:
- 0:d9acaeb37aed
- Child:
- 1:c9b199994bc2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 25 15:18:34 2016 +0000 @@ -0,0 +1,27 @@ +#include "mbed.h" + +DigitalOut spinnerled(LED1); +DigitalOut triggerled(LED2); +DigitalOut spinner(p20); +DigitalOut trigger(p19); +int i=0; +int shots; +int main() +{ + //while(1) { + spinnerled = 1; + spinner=1; + shots = 3.0; + while(i<shots) + { + trigger = 1; + triggerled=1; + wait(0.75); + trigger=0; + triggerled=0; + wait(0.5); + i=i+1; + } + i=0; + + }