Documentation and samples fixes/updates

I’ve been following the Everloop examples at https://matrix-io.github.io/matrix-documentation/API/everloop/ and the clock example doesn’t work, as the secondLED isn’t used.

I assume:

matrix.led([hourLED, minuteLED]).render();

Should be:

matrix.led([hourLED, minuteLED, secondLED]).render();

Also, the hourLED is defined as an arc without a start, so I’m assuming it should also be a single point. I.e.:

var hourLED = {
    // translate hours (12) to angle (360)
    arc: h * 3,
    color: 'blue'
  };

Should be:

var hourLED = {
    // translate hours (12) to angle (360)
    angle: h * 3,
    color: 'blue'
  };

Finally, the fade parameter isn’t detailed. In the video https://youtu.be/L4btaqw4HqM?t=1m53s it shows fade as a boolean parameter, but the documentation page describes it as “fade - similiar to arc, except lights fade out”. Neither use seems to really give anything predictable.

Could someone from the Matrix team update the docs?

PS The microphones page (https://matrix-io.github.io/matrix-documentation/API/microphone/) is “coming soon…”. Some info would be really useful.

1 Like