Robot fou

Dependencies:   SRF05 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "func.h"
00003 #include "time.h"
00004 
00005 
00006 int main() {
00007     srand(time(NULL));
00008     MotD.period_us(100);
00009     MotG.period_us(100);
00010     SensD.write(0);
00011     SensG.write(0);
00012     t2.attach(&vite,1.0);
00013     while(1) {
00014         clignote();
00015         fou();
00016     }
00017 }