Matrix

class ardurpc.handler.matrix.Base(**kwargs)[source]

Handler for the Base Matrix type

drawLine(x0, y0, x1, y1, color)[source]

Draw a line.

drawPixel(x, y, color)[source]

Draw a pixel.

Parameters:
  • x (Integer) – X-Position
  • y (Integer) – Y-Position
  • color (Integer|Tuple) – The color
fillScreen(color)[source]

Fill the screen with the given color.

getColorCount()[source]

Get the color count.

Returns:Number of colors
Return type:Integer
getHeight()[source]

Get the height in pixels

Returns:Height
Return type:Integer
getWidth()[source]

Get the width in pixels.

Returns:Width
Return type:Integer
class ardurpc.handler.matrix.Extended(**kwargs)[source]

Handler for the Extended Matrix type

drawChar(x, y, c, color, bg, size)[source]
drawCircle(x, y, radius, color)[source]
drawFastHLine(x, y, w, color)[source]
drawFastVLine(x, y, h, color)[source]
drawImage(x, y, image, encoding=2)[source]
drawRect(x, y, w, h, color)[source]
drawRoundRect(x, y, w, h, radius, color)[source]
drawTriangle(x0, y0, x1, y1, x2, y2, color)[source]
fillCircle(x, y, radius, color)[source]
fillRect(x, y, w, h, color)[source]
fillRoundRect(x, y, w, h, radius, color)[source]
fillTriangle(x0, y0, x1, y1, x2, y2, color)[source]
invertDisplay(i)[source]
setAutoSwapBuffers(auto_swap=True)[source]
setCursor(x, y)[source]
setRotation(rotation)[source]
setTextColor(color, bg=None)[source]
setTextSize(size)[source]
setTextWrap(wrap)[source]
swapBuffers(copy=True)[source]
write(s)[source]