Code for running the lights in the wooden tree on my daughters' bunk bed.
We've made an MDF model of a a couple of trees and some meadows and attached them to my daughters' bunk beds. In the main tree I've embedded a string of WS2811/WS2812 LEDs and a controlling arduino to drive them.
F R O N T B A C K
. . . .
. . . . . .
. . . . . . . . . . . . . . . 8 . . .
. 7 . . .
. 21 . . 6 .
. 19 . . .
. . . 18 .
. 4 9 17 . . 5 .
. 20 . . . . . . 10 3 .
. . . 16 .
. 15 . . .
. 11 14 . . .
. 2 . . .
. 1 12 13 . . .
. . . .
. 0 . . .
. .... . . . . . . . . . . . . . . . . . . . . . . .... .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . .