Junichi Katsu
/
Grove_Buzzer
GROVE - ブザー サンプルプログラム
Revision 0:e0759abe5333, committed 2013-11-30
- Comitter:
- jksoft
- Date:
- Sat Nov 30 03:11:13 2013 +0000
- Commit message:
- Rev1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r e0759abe5333 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Nov 30 03:11:13 2013 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut Buzzer(p5); + +int main() { + while(1) { + Buzzer = 1; + wait(0.5); + Buzzer = 0; + wait(0.5); + } +}
diff -r 000000000000 -r e0759abe5333 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Nov 30 03:11:13 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file