Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Composite RGB Light Controller Demo
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
106.806 KB
7 Dec, 2024 @ 8:39am
1 Change Note ( view )

Subscribe to download
Composite RGB Light Controller Demo

Description
Microcontroller that is able to run up to 40 RGB lights from a single composite line.

NOTE: you do need a small converter MC for every 10 lights in order to actually unpack the data.

The Lua script inside the main controller takes 4 numbers and boolean as input:

Number 1
Color - Red (0-255)
Number 2
Color - Green (0-255)
Number 3
Color - Blue (0-255)
Number 4
Light Number (1-max lights)
Boolean 1
Store

The main controller has a "memory" feature (that is, it will hold the last color value for a given light until you update it).

To update a light, send a color value on number channels 1-3, send the light number on number channel 4, and send true on boolean channel 1. If the boolean channel is not true, the light will not be updated.

Maximum number of active lights can be adjusted via the property slider.