xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(220);
}
const connectedCubeArray = [];
function mouseClicked() {
P5tCube.connectNewP5tCube().then(cube => {
connectedCubeArray.push(cube);
cube?.turnLightOn( 'white' );
});
}
const cubePositionIdChanged = (info) => {
console.log('cubePositionIdChanged!', info);
}
const cubeStandardIdChanged = (info) => {
console.log('cubeStandardIdChanged!', info);
}