Class LedMatrix

java.lang.Object
io.github.jabrena.juno.api.led.LedMatrix

public final class LedMatrix extends Object
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 Type
    Method
    Description
    static void
     
    static void
     
    static int
    The number of columns of the matrix on the board this program is compiled for: 12 or 13.
    static void
    loadFrame(int word0, int word1, int word2)
    Loads a frame of at most 96 pixels: loadFrame(int, int, int, int) with word3 zero.
    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 underlying loadFrame(const uint32_t[...]) of the board's Arduino_LED_Matrix library expects: the UNO R4's 96 pixels use the first three words and ignore word3; the UNO Q's 104 pixels use all four, the last holding the final 8 pixels in its top bits.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 underlying loadFrame(const uint32_t[...]) of the board's Arduino_LED_Matrix library expects: the UNO R4's 96 pixels use the first three words and ignore word3; 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) with word3 zero.
    • clear

      public static void clear()