HexLeds
HexLeds.h
- Committer:
- martwerl
- Date:
- 2018-06-22
- Revision:
- 0:be215ed59257
File content as of revision 0:be215ed59257:
#include "mbed.h" #ifndef HEXLEDS_H #define HEXLEDS_H class HexLeds { public: HexLeds(PinName pin1, PinName pin2, PinName pin3, PinName pin4) : _pin1(pin1), _pin2(pin2), _pin3(pin3), _pin4(pin4), _Leds(pin1, pin2, pin3, pin4) { _pin1 = 0; _pin2 = 0; _pin3 = 0; _pin4 = 0; _Leds = 0; } void input(void); void output(void); void hexOut(void); void printStatus(void); private: BusOut _Leds; DigitalOut _pin1; DigitalOut _pin2; DigitalOut _pin3; DigitalOut _pin4; int _Hexwert; }; #endif