Skip to content

Commit fa46b13

Browse files
authored
Merge branch 'main' into patch-1
2 parents be31726 + d5de8d9 commit fa46b13

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

examples/Utilities/FirmwareUpdater/FirmwareUpdater.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#if defined(ARDUINO_UNOWIFIR4)
12
#include "ArduinoGraphics.h"
23
#include "Arduino_LED_Matrix.h"
4+
#endif
35

46
#include "Modulino.h"
57
#include "Wire.h"
@@ -20,11 +22,14 @@ void setup() {
2022
}
2123

2224
auto result = flash(node_base_bin, node_base_bin_len);
25+
26+
#if defined(ARDUINO_UNOWIFIR4)
2327
if (result) {
2428
matrixInitAndDraw("PASS");
2529
} else {
2630
matrixInitAndDraw("FAIL");
2731
}
32+
#endif
2833
}
2934

3035
void loop() {
@@ -53,6 +58,7 @@ class SerialVerbose {
5358
bool _verbose;
5459
};
5560

61+
#if defined(ARDUINO_UNOWIFIR4)
5662
ArduinoLEDMatrix matrix;
5763

5864
void matrixInitAndDraw(char* text) {
@@ -67,6 +73,7 @@ void matrixInitAndDraw(char* text) {
6773

6874
matrix.endDraw();
6975
}
76+
#endif
7077

7178
bool flash(const uint8_t* binary, size_t lenght, bool verbose) {
7279

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_Modulino
2-
version=0.4.2
2+
version=0.4.3
33
author=Arduino
44
maintainer=Arduino <[email protected]>
55
sentence=Arduino Library for Modulinos

src/Modulino.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ class ModulinoMovement : public Module {
317317
}
318318
return 0;
319319
}
320+
int available() {
321+
if (initialized) {
322+
return _imu->accelerationAvailable();
323+
}
324+
return 0;
325+
}
320326
float getX() {
321327
return x;
322328
}

0 commit comments

Comments
 (0)