The API gives very good control of segments and WLED operations, you can check it out in the docs: JSON API - WLED Project.
Also a similar question was just answered: Push button for each segment
The API gives very good control of segments and WLED operations, you can check it out in the docs: JSON API - WLED Project.
Also a similar question was just answered: Push button for each segment