サーボをパルスで制御しています。バグ、質問等は中田までよろしく。

Dependencies:   mbed

Fork of BusOut_HelloWorld by mbed_example

Committer:
mbed_official
Date:
Mon Feb 11 17:29:01 2013 +0000
Revision:
0:717993c337df
Child:
2:e6fae83a99c1
Hello World for BusOut

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:717993c337df 1 #include "mbed.h"
mbed_official 0:717993c337df 2
mbed_official 0:717993c337df 3 BusOut myleds(LED1, LED2, LED3, LED4);
mbed_official 0:717993c337df 4
mbed_official 0:717993c337df 5 int main() {
mbed_official 0:717993c337df 6 while(1) {
mbed_official 0:717993c337df 7 for(int i=0; i<16; i++) {
mbed_official 0:717993c337df 8 myleds = i;
mbed_official 0:717993c337df 9 wait(0.25);
mbed_official 0:717993c337df 10 }
mbed_official 0:717993c337df 11 }
mbed_official 0:717993c337df 12 }