Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 3pi_Line_Follow by
main/main.h
- Committer:
 - eencae
 - Date:
 - 2018-03-22
 - Revision:
 - 2:408d95491424
 - Parent:
 - 0:008c53db1931
 
File content as of revision 2:408d95491424:
#ifndef MAIN_H
#define MAIN_H
#include "m3pi.h"
#include "mbed.h"
// API objects
extern m3pi robot;
// LEDs on the Mbed board
extern BusOut leds;
// Buttons on the 3pi shield
extern DigitalIn button_A;
extern DigitalIn button_B;
extern DigitalIn button_X;
extern DigitalIn button_Y;
extern DigitalIn button_enter;
extern DigitalIn button_back;
// Blue potentiometers on the 3pi shield
extern AnalogIn pot_P;
extern AnalogIn pot_I;
extern AnalogIn pot_D;
extern AnalogIn pot_S;
// Globals
// Prototypes
void init();
void welcome();
void calibrate();
void wait_for_enter();
void repeat();
#endif
            
    