Skip to content

Commit 9642e30

Browse files
committed
Arduino_LED_Matrix: add const to matrixWrite
This allows you to then change the sketch(s) used within the test apps for the Q to use this header file with little changes to them. Like the Weather forecast on LED matrix ``` #include "Arduino_LED_Matrix.h" Arduino_LED_Matrix matrix; void setup() { matrix.begin(); ... ``` Or in my test app I also then included ArduinoGraphics `` #include <Arduino_RouterBridge.h> #include "ArduinoGraphics.h" ...
1 parent 93ad66d commit 9642e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Arduino_LED_Matrix/src/Arduino_LED_Matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void matrixEnd(void);
77
void matrixPlay(uint8_t *buf, uint32_t len);
88
void matrixSetGrayscaleBits(uint8_t _max);
99
void matrixGrayscaleWrite(uint8_t *buf);
10-
void matrixWrite(uint32_t *buf);
10+
void matrixWrite(const uint32_t *buf);
1111
};
1212

1313
#if __has_include("ArduinoGraphics.h")

0 commit comments

Comments
 (0)