Reference   Language | Libraries | Comparison | Changes

Arduino_MKRRGB : MATRIX class

set()

Description

Set a pixel’s color value.

Syntax

MATRIX.set(x, y, r, g, b)

Parameters

x: x position of the pixel
y: y position of the pixel
r: red color value (0 - 255)
g: green color value (0 - 255)
b: blue color value (0 - 255)

Returns

Nothing

Example


MATRIX.beginDraw();
MATRIX.point(1, 1, 0, 255, 0);
MATRIX.endDraw();

See Also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.