Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code for RGB bolt-on #9

Open
brentpicasso opened this issue Sep 25, 2024 · 0 comments
Open

Example code for RGB bolt-on #9

brentpicasso opened this issue Sep 25, 2024 · 0 comments
Assignees

Comments

@brentpicasso
Copy link
Contributor

brentpicasso commented Sep 25, 2024

Need arduino example for RGB bolt on:

hello world demo code

In a loop, set each pixel to a random RGB color via CAN bus

Set an RGB pixel to a specified color

This will set a specific pixel to an RGB color

CAN bus message:
CAN protocol:
CAN ID (pick an ID)

message byte 0: LED index, starting with zero.
byte 1: red color (0-255)
byte 2: green color(0-255)
byte 3: blue color (0-255)

Order of LEDs:

image

Set a left or right alert via CAN bus

This will set the entire left or right array to a specific color. Left array has 5 LEDs, right array has 5 LEDs
CAN protocol:
CAN ID (pick an ID)
byte 0: array index (0= left, 1 = right)
byte 1: red color (0-255)
byte 2: green color(0-255)
byte 3: blue color (0-255)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants