Commit a8c727b
committed
Add the "mqtt" effect, where individual leds can be set via MQTT
For example, this message set LED 0 to a dim red and LED 1 to a bright
blue. The other LEDs will retain their color.
{effect:"mqtt",pixels:[{n:0,r:128,g:0,b:0},{n:1,r:0,g:0,b:255]}
Due to limitations in the MQTT library, you can only change a few LEDs
at a time. Due to the speed limits of MQTT this method is not
appropriate to create dynamic patterns, but it can be used for status
displays or to try out a patterns before coding them in the firmware.1 parent 8eaac3f commit a8c727b
File tree
1 file changed
+43
-0
lines changed1 file changed
+43
-0
lines changedLines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
865 | 891 | | |
866 | 892 | | |
867 | 893 | | |
| |||
943 | 969 | | |
944 | 970 | | |
945 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
946 | 978 | | |
947 | 979 | | |
948 | 980 | | |
| |||
988 | 1020 | | |
989 | 1021 | | |
990 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
991 | 1029 | | |
992 | 1030 | | |
993 | 1031 | | |
| |||
1191 | 1229 | | |
1192 | 1230 | | |
1193 | 1231 | | |
| 1232 | + | |
1194 | 1233 | | |
1195 | 1234 | | |
1196 | 1235 | | |
| |||
1610 | 1649 | | |
1611 | 1650 | | |
1612 | 1651 | | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1613 | 1656 | | |
1614 | 1657 | | |
1615 | 1658 | | |
| |||
0 commit comments