File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
examples/Utilities/FirmwareUpdater Expand file tree Collapse file tree 3 files changed +14
-1
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
Original file line number Diff line number Diff line change 1
1
name =Arduino_Modulino
2
- version =0.4.2
2
+ version =0.4.3
3
3
author =Arduino
4
4
maintainer =Arduino <info@arduino.cc>
5
5
sentence =Arduino Library for Modulinos
Original file line number Diff line number Diff line change @@ -317,6 +317,12 @@ class ModulinoMovement : public Module {
317
317
}
318
318
return 0 ;
319
319
}
320
+ int available () {
321
+ if (initialized) {
322
+ return _imu->accelerationAvailable ();
323
+ }
324
+ return 0 ;
325
+ }
320
326
float getX () {
321
327
return x;
322
328
}
You can’t perform that action at this time.
0 commit comments