Devices now cache notified values for easy retrieval without events
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0c3ff8b00a
commit
225b60f752
@ -28,7 +28,6 @@ poweredUP.on("discover", async (hub) => { // Wait to discover hubs
|
|||||||
})
|
})
|
||||||
|
|
||||||
hub.on("tilt", (device, { x, y, z }) => {
|
hub.on("tilt", (device, { x, y, z }) => {
|
||||||
console.log(x, y, z);
|
|
||||||
log(`Tilt detected on port ${device.portName} (X: ${x}, Y: ${y}${z !== undefined ? `, Z: ${z}`: ""})`);
|
log(`Tilt detected on port ${device.portName} (X: ${x}, Y: ${y}${z !== undefined ? `, Z: ${z}`: ""})`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user