katsumi kamihara
/
robocon_recovery_ver1
宮崎へ
Revision 0:c05c7f7ac2e5, committed 2017-12-14
- Comitter:
- e5115026
- Date:
- Thu Dec 14 08:15:23 2017 +0000
- Commit message:
- ???
Changed in this revision
diff -r 000000000000 -r c05c7f7ac2e5 Servo.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Thu Dec 14 08:15:23 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/Servo/#36b69a7ced07
diff -r 000000000000 -r c05c7f7ac2e5 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 14 08:15:23 2017 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "Servo.h" + +DigitalOut myled(LED1); +DigitalIn sw(p24); +Servo myservo(p25); + +//グローバル変数 + +//main関数 +int main() { + sw.mode(PullUp); + while(1) { + if(sw.read()==1){ + myservo = 1; + } + else{ + myservo = 0; + } + + } +}
diff -r 000000000000 -r c05c7f7ac2e5 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 14 08:15:23 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/b484a57bc302 \ No newline at end of file