I’m trying to run the sensor test app, but something seems amiss.
I don’t get any leds lighting up, and instead I get the following:
==== Application mySensorTest started! ====
(mySensorTest) Matrix OS Application Library Loading…
(mySensorTest) Initialize Sensor: temperature
Duplicate Sensor Initialization undefined
(mySensorTest) Initialize Sensor: pressure
Duplicate Sensor Initialization undefined
(mySensorTest) Initialize Sensor: humidity
Duplicate Sensor Initialization undefined
Duplicate Sensor Initialization undefined
(mySensorTest) Initialize Sensor: uv
Initialize Sensor: altitude
Duplicate Sensor Initialization undefined
Duplicate Sensor Initialization undefined
Duplicate Sensor Initialization undefined
Duplicate Sensor Initialization undefined
(mySensorTest) Initialize Sensor: gyroscope
Initialize Sensor: magnetometer
Initialize Sensor: accelerometer
(mySensorTest) Matrix App Host Ready!
hb: sen> [ ‘temperature’,
‘pressure’,
‘humidity’,
‘uv’,
‘altitude’,
‘gyroscope’,
‘magnetometer’,
‘accelerometer’ ] svc> []
No leds ever light up (apart from the normal blue status leds of course)
Here’s my config.yaml for the app:
# do not touch this line configVersion: 2 description: Sensor testing with LEDs keywords: Sensor Test Led name: mySensorTest shortName: mySensorTest displayName: My Sensor Test
sensors:
- temperature
- pressure
- humidity
- uv
- altitude
- gyroscope
- magnetometer
- accelerometer
And here’s my app.js:
// app code goes here
// matrix.init()…
//
// have fun
matrix.sensor(‘temperature’, function(data){
matrix.led({
angle: 0,
color: ‘blue’
}).render();
});
… repeated for all the other sensors, with angle changed …
Any clues on how to proceed?