File tree 1 file changed +7
-0
lines changed
examples/Utilities/FirmwareUpdater
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ #if defined(ARDUINO_UNOWIFIR4)
1
2
#include " ArduinoGraphics.h"
2
3
#include " Arduino_LED_Matrix.h"
4
+ #endif
3
5
4
6
#include " Modulino.h"
5
7
#include " Wire.h"
@@ -20,11 +22,14 @@ void setup() {
20
22
}
21
23
22
24
auto result = flash (node_base_bin, node_base_bin_len);
25
+
26
+ #if defined(ARDUINO_UNOWIFIR4)
23
27
if (result) {
24
28
matrixInitAndDraw (" PASS" );
25
29
} else {
26
30
matrixInitAndDraw (" FAIL" );
27
31
}
32
+ #endif
28
33
}
29
34
30
35
void loop () {
@@ -53,6 +58,7 @@ class SerialVerbose {
53
58
bool _verbose;
54
59
};
55
60
61
+ #if defined(ARDUINO_UNOWIFIR4)
56
62
ArduinoLEDMatrix matrix;
57
63
58
64
void matrixInitAndDraw (char * text) {
@@ -67,6 +73,7 @@ void matrixInitAndDraw(char* text) {
67
73
68
74
matrix.endDraw ();
69
75
}
76
+ #endif
70
77
71
78
bool flash (const uint8_t * binary, size_t lenght, bool verbose) {
72
79
You can’t perform that action at this time.
0 commit comments