ハセオムニのプログラム

Dependencies:   vnh5019 SerialMultiByte omni_wheel PID jy901 MotorSMLAP PS3

Committer:
LVRhase01
Date:
Tue Oct 29 07:46:25 2019 +0000
Revision:
0:b3c48e055e7b
Child:
1:3d8552eac4fa
first led;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
LVRhase01 0:b3c48e055e7b 1 #include "mbed.h"
LVRhase01 0:b3c48e055e7b 2
LVRhase01 0:b3c48e055e7b 3 DigitalOut led1(LED1);
LVRhase01 0:b3c48e055e7b 4
LVRhase01 0:b3c48e055e7b 5 // main() runs in its own thread in the OS
LVRhase01 0:b3c48e055e7b 6 int main() {
LVRhase01 0:b3c48e055e7b 7 while (true) {
LVRhase01 0:b3c48e055e7b 8 led1 = !led1;
LVRhase01 0:b3c48e055e7b 9 wait(0.5);
LVRhase01 0:b3c48e055e7b 10 }
LVRhase01 0:b3c48e055e7b 11 }
LVRhase01 0:b3c48e055e7b 12