Skip to content

Lumyn-Labs/Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Examples

This repository contains examples that demonstrate how to use Lumyn Labs devices with WPILib. Each example is fully functional and can be run in simulation or on a real robot. Both Java and C++ implementations are provided with identical functionality.

Controls

The examples use an Xbox controller to trigger different effects:

Button Effect
A Chase animation on climbers
B Fire animation on left climber
X Rainbow cycle on climbers
Y Scrolling "GO TEAM!" text on matrices
LB Sparkle animation on climbers
RB Heartbeat animation on climbers
LT Play "celebrate" sequence
RT Play image sequence on front matrix
Start Set climbers and matrices to primary color
Back Turn off climbers and matrices
RS Toggle DirectLED rainbow on left climber

Running on Hardware

When running on a real robot, you will need a ConnectorX Animate device and a config.json file that matches the simulation configuration. The examples use a configuration with two LED strips (60 LEDs total for "climbers") and two LED matrices (16x16 and 8x32).

In order to use the image sequences on a real robot, you will need to copy the contents of the deploy/connectorx directory to the root of your ConnectorX Animate device's SD card.

Python Examples

Python examples are in LumynLabsExamplesPython/ and use the standalone lumyn-sdk package (not WPILib).

Included examples:

  • quickstart.py
  • connectorx_basic.py
  • connectorx_animate.py
  • device_comparison.py
  • handshake_basic.py
  • matrix_text_advanced.py
  • modules_typed.py
  • config_builder_basic.py
  • config_builder_advanced.py
  • screen_mirror.py

Included example configs:

  • example_device_config.json
  • example_device_config_basic.json

Running Python Examples

  1. Install Python 3.11+ and create a virtual environment.
  2. Install the SDK
  3. Run an example (replace port as needed):
    • python LumynLabsExamplesPython/quickstart.py --port COM3
    • python LumynLabsExamplesPython/connectorx_basic.py --port /dev/ttyACM0

Most examples support --list-ports to discover available serial ports.

About

Example projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published