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)
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
3035void loop () {
@@ -53,6 +58,7 @@ class SerialVerbose {
5358 bool _verbose;
5459};
5560
61+ #if defined(ARDUINO_UNOWIFIR4)
5662ArduinoLEDMatrix matrix;
5763
5864void matrixInitAndDraw (char * text) {
@@ -67,6 +73,7 @@ void matrixInitAndDraw(char* text) {
6773
6874 matrix.endDraw ();
6975}
76+ #endif
7077
7178bool flash (const uint8_t * binary, size_t lenght, bool verbose) {
7279
Original file line number Diff line number Diff line change 11name =Arduino_Modulino
2- version =0.4.2
2+ version =0.4.3
33author =Arduino
44maintainer =Arduino <info@arduino.cc>
55sentence =Arduino Library for Modulinos
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments