B4R Library Adafruit RGB Led Matrix

rAdafruitRGBMatrix is a wrapper for: https://github.com/adafruit/RGB-matrix-Panel

Example:
B4X:
Sub Process_Globals
   Public Serial1 As Serial
   Private matrix As RGBmatrixPanel
End Sub

Private Sub AppStart
   Serial1.Initialize(115200)
   Log("AppStart")
   Dim p As Pin 'ignore
   matrix.Initialize32(p.A0, p.A1, p.A2, p.A3, 11, 10, 9, False, 64)
   matrix.FillScreen(matrix.Color333(7, 0, 0))
   matrix.GFX.DrawCircle(5, 5, 3, matrix.Color333(0, 0, 7), True)
   Log(matrix.GFX.Width, " x ", matrix.GFX.Height)
   matrix.UpdateDisplay 'not sure if required or not
End Sub

20170629_121111-4-jpg.57169


Note that you need to add a reference to rAdafruitGFX as well.
 

Attachments

  • rAdafruitRGBMatrix.zip
    12.9 KB · Views: 487

Johan Hormaza

Well-Known Member
Licensed User
Top