Webserver lauffähig.
This commit is contained in:
57
arduino/uno-r4-wifi/led_matrix/led_matrix.ino
Normal file
57
arduino/uno-r4-wifi/led_matrix/led_matrix.ino
Normal 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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user