This is a c# for controlling Magic UFO Led WIFI strip contollers. For example:
This code is still very much work in progress. Note that there is minimal error checking!
Currently this code compiles into a command line utility. Here is the usage:
MagicUFOLedController
is a semi-colon delimited list of IP addresses.
Here are the
TURNON
TURNOFF
SETCOLOR
SETBRIGHTNESS
SETRANDOMCOLOR
CUSTOMFADES
####Examples:
MagicUFOController.exe 192.168.1.143 TURNOFF
MagicUFOController.exe 192.168.1.143;192.168.1.144;192.168.1.145 TURNON
MagicUFOController.exe 192.168.1.143 SETCOLOR 200 60 20 0
MagicUFOController.exe 192.168.1.143 CUSTOMFADES 255,0,0,0;0,255,255,0 JUMPING 20
#####TURNON and TURNOFF No parameters
#####Syntax for SETCOLOR is:
SETCOLOR RED GREEN BLUE WHITE
where RED, GREEN, BLUE, and WHITE are numbers between 0 and 255
#####Syntax for SETBRIGHTNESS is:
SETBRIGHTNESS BRIGHTNESS
where BRIGHTNESS is between 0 and 100
#####Sytax for CUSTOMFADES
CUSTOMFADES COLORSET FADEMODE SPEED
FADEMODE can be:
JUMPING GRADUAL STROBE
COLORSET is Red,Green,Blue,White sets delimted by semi-colons.The API supports up to 16.
SPEED is a number between 1 an 30 (1 slowest -- 30 fastest)
The Core API is in a class called LedApi.
#####Syntax for SETRANDOMCOLOR
SETRANDOMCOLOR
is optional for SETRANDOMCOLOR. It can be a number between 0 and 100
Note that SETRANDOMCOLOR biases towards more saturated colors in the random number algorithm.