Hi all,
I am trying to use the sync feature and sending sensor data. I have accelerometer data from the v3 pico and I am sending it to a v3 standard. I have just done the stupidest possible thing and modified the initial script, so that I can test what happens. What I find is that the v3 standard just runs the script as if there is no accel data, while the v3 pico reacts exactly as I expect. I feel like I am being very stupid here… what am I doing wrong??
var ohHeyLookThisIsSomeCode
export var accelerometer = array(3);
/*
Practice commenting out some code. Here is the test pattern. You don’t need
to understand it yet, but try surrounding it with slash-star, star-slash.
Or, play with disabling some of its lines by inserting a ‘//’ on the left.
*/
export function render(index) {
red = green = blue = 0
leadPosition = time(0.08) * pixelCount + accelerometer[0]*10000
red = abs(leadPosition - index - 0) < 1
green = abs(leadPosition - index - 4) < 1
blue = abs(leadPosition - index - 8) < 1
rgb(red, green, blue)
}