Class LedMatrix
java.lang.Object
io.github.jabrena.juno.api.led.LedMatrix
The board's built-in LED matrix operations, recognized as compiler intrinsics by Juno: 12x8 on the UNO R4
WiFi and 13x8 on the UNO Q.
columns() tells a program which one it was compiled for; frames are
packed row by row, MSB first, into 32-bit words (columns() * 8 pixels: three words on the R4, four
on the Q).-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbegin()static voidclear()static intcolumns()The number of columns of the matrix on the board this program is compiled for: 12 or 13.static voidloadFrame(int word0, int word1, int word2) Loads a frame of at most 96 pixels:loadFrame(int, int, int, int)withword3zero.static voidloadFrame(int word0, int word1, int word2, int word3) Loads a frame packed MSB-first into four 32-bit words, exactly as the underlyingloadFrame(const uint32_t[...])of the board'sArduino_LED_Matrixlibrary expects: the UNO R4's 96 pixels use the first three words and ignoreword3; the UNO Q's 104 pixels use all four, the last holding the final 8 pixels in its top bits.
-
Method Details
-
begin
public static void begin() -
columns
public static int columns()The number of columns of the matrix on the board this program is compiled for: 12 or 13. -
loadFrame
public static void loadFrame(int word0, int word1, int word2, int word3) Loads a frame packed MSB-first into four 32-bit words, exactly as the underlyingloadFrame(const uint32_t[...])of the board'sArduino_LED_Matrixlibrary expects: the UNO R4's 96 pixels use the first three words and ignoreword3; the UNO Q's 104 pixels use all four, the last holding the final 8 pixels in its top bits. -
loadFrame
public static void loadFrame(int word0, int word1, int word2) Loads a frame of at most 96 pixels:loadFrame(int, int, int, int)withword3zero. -
clear
public static void clear()
-