Thumbnail

RGB 8X8 Animator

+ How To Add This Control To Your Project (Click to Expand)
  1. Load the most recent release of ARC.
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Control from the button ribbon bar in ARC.
  4. Choose the I2C category tab.
  5. Press the RGB 8X8 Animator icon to add the control to your project.

This animator controls the EZ-Robot RGB 8x8 display. The animator allows you to create multiple frames using the mouse, which are can be played back at specified speeds. This operates much like a flip-book.

Hardware

The hardware is open source and available HERE on GitHub.

EZ-Script Option

This control also accepts many ControlCommand(). Using EZ-Script, you may pragmatically draw on the canvas. The canvas is a memory buffer. While you draw to the canvas, the changes occur in memory. Once you are ready to display the canvas, use the CanvasUpdate ControlCommand as demonstrated in the example below.

Here is an example of EZ-Script that creates a fun animated pattern...

$x = 0

:loop

ControlCommand("RGB 8x8 Animator", CanvasClear, false, false, false)

ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 1) % 8, ($x + 1) % 8, true, false, true)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 2) % 8, ($x + 2) % 8, false, true, true)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 3) % 8, ($x + 3) % 8, false, true, false)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 4) % 8, ($x + 4) % 8, true, false, false)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 5) % 8, ($x + 5) % 8, true, true, false)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 6) % 8, ($x + 6) % 8, true, true, true)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, ($x + 7) % 8, ($x + 7) % 8, false, false, true)
ControlCommand("RGB 8x8 Animator", CanvasDrawRectangle, 0, 0, $x % 8, $x % 8, true, false, false)

ControlCommand("RGB 8x8 Animator", CanvasUpdate)

sleep(250)

$x++

goto(loop)