Mattei Caraman
/
Robot_Fou_v2
Robot fou
Diff: main.cpp
- Revision:
- 0:8b7645cd8a39
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jun 01 08:27:06 2018 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "func.h" +#include "time.h" + + +int main() { + srand(time(NULL)); + MotD.period_us(100); + MotG.period_us(100); + SensD.write(0); + SensG.write(0); + t2.attach(&vite,1.0); + while(1) { + clignote(); + fou(); + } +}