Craig Evans / Mbed 2 deprecated 3pi_Line_Follow

Dependencies:   m3pi mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef MAIN_H
00002 #define MAIN_H
00003 
00004 #include "m3pi.h"
00005 #include "mbed.h"
00006 
00007 // API objects
00008 extern m3pi robot;
00009 
00010 // LEDs on the Mbed board
00011 extern BusOut leds;
00012 
00013 // Buttons on the 3pi shield
00014 extern DigitalIn button_A;
00015 extern DigitalIn button_B;
00016 extern DigitalIn button_X;
00017 extern DigitalIn button_Y;
00018 extern DigitalIn button_enter;
00019 extern DigitalIn button_back;
00020 
00021 // Blue potentiometers on the 3pi shield
00022 extern AnalogIn pot_P;
00023 extern AnalogIn pot_I;
00024 extern AnalogIn pot_D;
00025 extern AnalogIn pot_S;
00026 
00027 // Globals
00028 
00029 // Prototypes
00030 void init();
00031 void welcome();
00032 void calibrate();
00033 void wait_for_enter();
00034 void repeat();
00035 
00036 #endif