writePixel
Write the specified color to an individual pixel at the specified row and column of LED Matrix
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
writePixel(
writes
the specified pixel color value at the specified pixel location on
the LED Matrix.mysh
,pixelLocation
,pixelValue
)
Specify the pixel location as 1x2 [row column] value. Specify the color as a 1x3 [R G B] value.
writePixel(
writes
the specified color at the specified location on the LED Matrix.mysh
,pixelLocation
,color
)
Specify the pixel location as 1x2 [row column] value. Specify the color by name.
You can specify the following colors by name:
‘red’ or ‘r’
‘blue’ or ‘b’
‘green’ or ‘g’
‘cyan’ or ‘c’
‘magenta’ or ‘m’
‘yellow’ or ‘y’
‘white’ or ‘w’
‘black’ or ‘k’
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2016b