Setup
Setup.h
- Committer:
- jmateo09
- Date:
- 2019-05-15
- Revision:
- 0:edde6cee85f5
File content as of revision 0:edde6cee85f5:
#include "mbed.h" #include "XBee.h" #include "MODSERIAL.h" #include "sstream" class Communication { public: Communication(); MODSERIAL pc; MODSERIAL XBee; void DoComConfig(char *swversion); private: }; class IO { public: IO(); // Mapping IO-pins // Onboard Leds on the Mbed. DigitalOut myled1; DigitalOut myled2; DigitalOut myled3; DigitalOut myled4; // RGB LED background. PwmOut LCDRed; PwmOut LCDGreen; PwmOut LCDBlue; //PushButtons & Selector switch, they all need the 'Pull-up' function. //FB means 'Function Button'. DigitalIn FB1; // Black pushbutton, Wire color: Orange & black. DigitalIn FB2; // Black pushbutton, Wire color: Orange & black. DigitalIn FB3; // Green pushbutton, Wire color: Orange & black. //Motor Pins PwmOut Speed; DigitalOut CW; DigitalOut CCW; //SW means 'Selector Switch'. //(Pins to be determent(P18,P19).) DigitalIn SW1; DigitalIn SW2; void DoIOConfig(); private: };