Here are some instructions for adding content to the door:
## Record Output from Resolume
We've got 30 LED strips with 35 LEDs each. Let's split this into 6 groups of 5.
Each group has 175 LEDs. One "universe" of data contains 170 LEDs of data so we'll use 2 universes for each group. So in the code below, we'll say:
```
LED_WIDTH: 340
LED_HEIGHT: 6
```
https://github.com/dramamine/lightdream-pocket/tree/main/artnet-to-sd-card
## Help Please!
The script above doesn't have a CLI, just hardcoded parameters. I could use some help parameterizing it.
## Code for Teensy
https://github.com/dramamine/lightdream-pocket/tree/main/ld-artnet-videosdcard
### Parts
Power supply with barrel jack adapter. Should need 6 amps for this.
[1](https://www.amazon.com/Kastar-Adapter-5-52-5mm-Wireless-Security/dp/B003TUMDWG/ref=sr_1_2?crid=PUFGQ0WVPH3I&keywords=12v+6a+power+supply&qid=1697406402&sprefix=12V+6A+%2Caps%2C161&sr=8-2)
[2](https://www.amazon.com/Supply-Adapter-Output-Converter-Regulator/dp/B08ZC7J3BZ/ref=sr_1_1?crid=PUFGQ0WVPH3I&keywords=12v+6a+power+supply&qid=1697406402&sprefix=12V+6A+%2Caps%2C161&sr=8-1)
Marten-supplied:
Teensy with Octo adapter, headers ($30)
30 strips ($7.05 each) = $211.50
Mini SD card ($3)
### Ethernet & Power -> 4 4-Pin Adapter
![[Pasted image 20231018222431.png]]
## Creating Content
Try loading the Resolume Composition from the USB drive. You probably need to relocate some clips or something. I would load the deck Autoplay V2
![[Pasted image 20231018222708.png]]
From there you can do some stuff like filter through which clips are good, & you can add effects like brightness, change speed, etc.
Check out the Transition Time slider. Here it's partway up which means when you click on a clip, it'll do the transition Alpha over a few seconds. Pull this slider down to have instant transitions.
![[Pasted image 20231018222846.png]]
Another helpful thing is Auto Pilot and Loop Count. These can be used to create a layer with a bunch of clips that then advance to the next clip in that layer.
![[Pasted image 20231019131111.png]]
More info: https://www.youtube.com/watch?v=aHDe5seXLpQ
## Adding a Button / Controls
Check out the data sheet here: https://www.pjrc.com/store/teensy41.html
The Octo adaptor uses a lot of pins but there are still a bunch free as "digital input pins" which means you could wire up some buttons to them.
Say you wanted a button to cycle between chill mode, exciting mode, and off mode. You'd want to modify the sketch https://github.com/dramamine/lightdream-pocket/tree/main/ld-artnet-videosdcard in the following ways:
- Set `useNetwork` to `false` or just remove the namespace `Networking`
- Support multiple filenames
- Listen for button inputs and update which file you're using based on presses
- For "off" mode, send black to each LED and then stop updating the LEDs based on SD card
## Notes
![[DSC_1807.jpg]]