GROVE - ブザー サンプルプログラム

Dependencies:   mbed

Committer:
jksoft
Date:
Sat Nov 30 03:11:13 2013 +0000
Revision:
0:e0759abe5333
Rev1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:e0759abe5333 1 #include "mbed.h"
jksoft 0:e0759abe5333 2
jksoft 0:e0759abe5333 3 DigitalOut Buzzer(p5);
jksoft 0:e0759abe5333 4
jksoft 0:e0759abe5333 5 int main() {
jksoft 0:e0759abe5333 6 while(1) {
jksoft 0:e0759abe5333 7 Buzzer = 1;
jksoft 0:e0759abe5333 8 wait(0.5);
jksoft 0:e0759abe5333 9 Buzzer = 0;
jksoft 0:e0759abe5333 10 wait(0.5);
jksoft 0:e0759abe5333 11 }
jksoft 0:e0759abe5333 12 }