Fixed coordiante behaviour of the matrix

This commit is contained in:
Matthias Mitscherlich
2023-01-18 10:36:36 +01:00
parent 027dd38eb9
commit 1ae7d6ec5a
4 changed files with 92 additions and 77 deletions
+7 -1
View File
@@ -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;