25 #ifndef SEVENSEGMENTDISPLAY_H_
26 #define SEVENSEGMENTDISPLAY_H_
27 #include "../bus/SPIDevice.h"
44 virtual int write(
int number);
45 virtual int write(
float number,
int places);
49 virtual void setCommonAnode(
bool isCommonAnode) { this->isCommonAnode = isCommonAnode; }
53 const static unsigned char symbols[];
virtual int write(int number)
Definition: SevenSegmentDisplay.cpp:56
virtual void setCommonAnode(bool isCommonAnode)
Definition: SevenSegmentDisplay.h:49
SevenSegmentDisplay(SPIDevice *device, int numberSegments)
Definition: SevenSegmentDisplay.cpp:44
virtual int getNumberSegments()
Definition: SevenSegmentDisplay.h:48
A class that allows you to drive an array of 7 segment displays using an array of 74XX595 ICs...
Definition: SevenSegmentDisplay.h:35
Generic SPI Device class that can be used to connect to any type of SPI device and read or write to i...
Definition: SPIDevice.h:39
virtual int setNumberBase(int base)
Definition: SevenSegmentDisplay.cpp:51
Definition: BusDevice.cpp:27
virtual ~SevenSegmentDisplay()
Definition: SevenSegmentDisplay.cpp:88
virtual int getNumberBase()
Definition: SevenSegmentDisplay.h:47