Fixed coordiante behaviour of the matrix
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
// Constant and macro definitions
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
#define LEDMATRIX_RED_INDEX ((uint32_t)1)
|
||||
#define LEDMATRIX_GREEN_INDEX ((uint32_t)0)
|
||||
#define LEDMATRIX_BLUE_INDEX ((uint32_t)2)
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// Type definitions.
|
||||
@@ -102,7 +105,10 @@ class LEDMatrix
|
||||
public:
|
||||
LEDMatrix(LEDMatrix_Parameters_t* parameters);
|
||||
|
||||
void setPixelValue(unsigned int row, unsigned int colum, bool value);
|
||||
bool setPixelValue(unsigned int row, unsigned int colum, bool value);
|
||||
void setGlobalColour(uint8_t red, uint8_t green, uint8_t blue);
|
||||
|
||||
void clear(void);
|
||||
|
||||
private:
|
||||
LEDMatrix_Parameters_t parameters;
|
||||
|
||||
Reference in New Issue
Block a user