mbed workshop intro + cansat examples
Diff: Buzzer.cpp
- Revision:
- 0:f309f06aeec7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Buzzer.cpp Thu May 10 21:14:34 2012 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut buzzer(p21); + +int main() { + while (true) { + for (int i = 0; i < 3; i++) { + buzzer = 1; + wait(0.05); + buzzer = 0; + wait(0.05); + } + wait(0.7); + } +} \ No newline at end of file