tom-2015 / rpi-ws2812-server

Raspberry Pi WS2812 (web) server tool
172 stars 39 forks source link

Is it possible to fade to channels at a time #27

Open simonwhill opened 5 years ago

simonwhill commented 5 years ago

Hi

So would like to fade multiple channels at the same time, but cant see a way to.

if i send this command:

fill 1,00ff00;fill 2,00ff00;thread_start;do;fade 1,255,0,10;fade 2,255,0,10;fade 1,0,255,10;fade 2,0,255,10;loop;thread_stop; it does work but the channels fade one channel at a time, and id like to fade them both at the same time. am i doing something wrong? this is the debug output:

Waiting for client to connect. Enter thread 1,0,72. do 2 fade 0, 255, 0, 10, -1, 0, 28 fade 1, 255, 0, 10, -1, 0, 113 fade 0, 0, 255, 10, 1, 0, 28 fade 1, 0, 255, 10, 1, 0, 113 loop 71 fade 0, 255, 0, 10, -1, 0, 28 fade 1, 255, 0, 10, -1, 0, 113 fade 0, 0, 255, 10, 1, 0, 28 fade 1, 0, 255, 10, 1, 0, 113 loop 71 fade 0, 255, 0, 10, -1, 0, 28 fade 1, 255, 0, 10, -1, 0, 113 fade 0, 0, 255, 10, 1, 0, 28 fade 1, 0, 255, 10, 1, 0, 113 loop 71

and you can see that it is doing one channel at a time.

any thoughts / advice / help greatly appreciated.

Simon

tom-2015 commented 5 years ago

unfortunately this is not possible i'm afraid it's not that advanced. I'm not sure but maybe if you run 2 ws2812 server apps on a different port?