Yoji KURODA
/
Mechatro_DigitalIn
Mechatronics example program
Diff: main.cpp
- Revision:
- 0:fbfdf477cfd1
- Child:
- 1:e450b69e093a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 05 07:44:05 2017 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalIn d0(D0); + +int main() { + while(1) { + myled = ~myled; // LED is toggled + + printf("D[%1d]\n",d0); + } +}