Skip to content

Instantly share code, notes, and snippets.

@Garywoo
Created October 19, 2024 00:17
Show Gist options
  • Save Garywoo/b6cd1ea90cb5e17cc60b01ae68a2b770 to your computer and use it in GitHub Desktop.
Save Garywoo/b6cd1ea90cb5e17cc60b01ae68a2b770 to your computer and use it in GitHub Desktop.
Chromance Hexagons WLED Map
{"map": [
406,407,408,409,410,411,412,413,414,415,416,417,418,419,
420,421,422,423,424,425,426,427,428,429,430,431,432,433,
434,435,436,437,438,439,440,441,442,443,444,445,446,447,
532,533,534,535,536,537,538,539,540,541,542,543,544,545,
546,547,548,549,550,551,552,553,554,555,556,557,558,559,
377,376,375,374,373,372,371,370,369,368,367,366,365,364,
363,362,361,360,359,358,357,356,355,354,353,352,351,350,
392,393,394,395,396,397,398,399,400,401,402,403,404,405,
223,222,221,220,219,218,217,216,215,214,213,212,211,210,
125,124,123,122,121,120,119,118,117,116,115,114,113,112,
111,110,109,108,107,106,105,104,103,102,101,100,99,98,
97,96,95,94,93,92,91,90,89,88,87,86,85,84,
168,169,170,171,172,173,174,175,176,177,178,179,180,181,
182,183,184,185,186,187,188,189,190,191,192,193,194,195,
196,197,198,199,200,201,202,203,204,205,206,207,208,209,
126,127,128,129,130,131,132,133,134,135,136,137,138,139,
307,306,305,304,303,302,301,300,299,298,297,296,295,294,
349,348,347,346,345,344,343,342,341,340,339,338,337,336,
391,390,389,388,387,386,385,384,383,382,381,380,379,378,
13,12,11,10,9,8,7,6,5,4,3,2,1,0,
461,460,459,458,457,456,455,454,453,452,451,450,449,448,
531,530,529,528,527,526,525,524,523,522,521,520,519,518,
517,516,515,514,513,512,511,510,509,508,507,506,505,504,
503,502,501,500,499,498,497,496,495,494,493,492,491,490,
476,477,478,479,480,481,482,483,484,485,486,487,488,489,
321,320,319,318,317,316,315,314,313,312,311,310,309,308,
153,152,151,150,149,148,147,146,145,144,143,142,141,140,
322,323,324,325,326,327,328,329,330,331,332,333,334,335,
475,474,473,472,471,470,469,468,467,466,465,464,463,462,
154,155,156,157,158,159,160,161,162,163,164,165,166,167,
14,15,16,17,18,19,20,21,22,23,24,25,26,27,
28,29,30,31,32,33,34,35,36,37,38,39,40,41,
42,43,44,45,46,47,48,49,50,51,52,53,54,55,
56,57,58,59,60,61,62,63,64,65,66,67,68,69,
70,71,72,73,74,75,76,77,78,79,80,81,82,83,
237,236,235,234,233,232,231,230,229,228,227,226,225,224,
238,239,240,241,242,243,244,245,246,247,248,249,250,251,
252,253,254,255,256,257,258,259,260,261,262,263,264,265,
266,267,268,269,270,271,272,273,274,275,276,277,278,279,
280,281,282,283,284,285,286,287,288,289,290,291,292,293
]}
@Garywoo
Copy link
Author

Garywoo commented Oct 19, 2024

Instructions to use

This will allow you to use WLED to control a build of Zack Freedman's Chromance project, instead of his firmware. This will give you much easier control over the effects and let you automate it with things like Home Assistant.

  1. Install WLED on your ESP32.
  2. In WLED, add the LED outputs for the 4 LED strips.
    • This will only work correctly if you followed the same wiring schematic as documented in the original build.
    • Your outputs should be:
      1. GPIO: 16 - Start: 0 - Length: 84
      2. GPIO: 15 - Start: 84 - Length: 154
      3. GPIO: 0 - Start: 238 - Length: 168
      4. GPIO: 5 - Start: 406 - Length: 154
  3. Go to the /edit page of WLED. E.g. http://192.168.2.47/edit
  4. In the input box at the top, type ledmap.json, and in the area below, paste in the JSON from above.
  5. Click the Create button.
  6. Go back to your WLED homepage.
  7. I can't remember if WLED creates the segments for you or not, but make sure they are set up like the below. These will represent the different 'components' of the Chromance. You could modify this to add more if you wanted to have more control over different components.
    1. Start: 0 - Stop: 168 (Big Hexagon)
    2. Start: 168 - Stop: 336 (Star)
    3. Start: 336 - Stop: 420 (Inner)
    4. Start: 420 - Stop: 560 (Ears)
  8. Have fun playing with some effects!

Tips

  • I recommend using the 'Mirror effect' checkbox on the segments 1, 2, and 4. This looks pretty cool on slower patterns
  • Try setting 'Reverse direction' on some segments (e.g. 2 and 3) on some effects.
  • You can find presets I created for the effects I use here. Add them to the /presets.json file in the WLED /edit page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment