Junichi Nagayama / Mbed 2 deprecated SIST-3
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut motor(p21);
00004 
00005 int main() {
00006     while(1) {
00007         motor = 1;
00008         wait(1.0);
00009         motor = 0;
00010         wait(1.0);
00011     }
00012 }