Setup
Diff: Setup.h
- Revision:
- 0:17b249a76ce6
diff -r 000000000000 -r 17b249a76ce6 Setup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Setup.h Thu Feb 28 15:54:52 2019 +0000 @@ -0,0 +1,55 @@ +#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: + +}; \ No newline at end of file