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.
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
Generated on Wed Jul 13 2022 16:56:13 by
1.7.2