Webserver lauffähig.

This commit is contained in:
Olli Graf
2024-05-20 15:23:49 +02:00
parent 3d21c87dd6
commit a1e3b559ab
3 changed files with 184 additions and 72 deletions

View File

@@ -0,0 +1,57 @@
#include "Arduino_LED_Matrix.h"
ArduinoLEDMatrix matrix;
/*byte frame[8][12] = {
{ 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0 },
{ 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0 },
{ 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 },
{ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
{ 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
};
*/
/* byte frame[8][12] ={
{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, }
};
*/
byte frame[8][12] ={
{ 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, },
{ 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, },
{ 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, },
{ 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, },
{ 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, },
{ 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, },
{ 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
};
/*unsigned long frame[] = {
0x3184a444,
0x42081100,
0xa0040000
};
*/
void setup() {
Serial.begin(115200);
matrix.begin();
}
void loop() {
// put your main code here, to run repeatedly:
matrix.renderBitmap(frame, 8, 12);
}