The ASEE-2014 Robot Code

Dependencies:   LineFollower mbed Motor

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 /* Global Variables */
00004 Linefollower frontarray(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8);
00005 DigitalOut myled(LED1);
00006 
00007 /* Driver methods */
00008 
00009 
00010 int main() {
00011     while(1) {
00012         myled = 1;
00013         wait(0.2);
00014         myled = 0;
00015         wait(0.2);
00016     }
00017 }