I have a Q and a Modulino Distance Module.
The Distance Module is connected to the QWIIC port of the Q with the provided QWIIC Cable.
The LED on the Distance Module is lit.
But the example script does not find the Distance Module.
distance.available() never gets True.
I asked Mistral for an i2c scanner and this finds a device on 0x29 on Wire1 as expected.
What is wrong with the Modulino Lib (0.6.1)?
Or am I missing something?
#include "Modulino.h"
#include <Arduino_RouterBridge.h>
// Create object instance
ModulinoDistance distance;
void setup() {
Monitor.begin(9600);
// Initialize the Modulino system and distance sensor
Modulino.begin();
distance.begin();
}
void loop() {
if (distance.available()) {
int measure = distance.get();
Monitor.println(measure);
}
delay(10);
}