Send dmx Demo:

100

200

300

400

.....


Catch Demo:





wboxsdk.js is a wbox web sdk file , in your web html page only include this file

//--------------------------------------------------------
//function send_dmxdata(dmxdata_buf);
// dmxdata_buf[4096] is a dmxdata buffer, save all 4096 channels dmx value
// dmxdata_buf[0]~dmxdata_buf[511] is port0,
// dmxdata_buf[512]~dmxdata_buf[1023] is port1
// dmxdata_buf[1024]~dmxdata_buf[1535] is port2,
// .....
//---------------------------------------------------------


//--this function not in wboxsdk.js, it's in sdkdemo.js--------
//function send_channels(universe, channels, dmx_value);
// universe only 0~7 port output
// channels only 0~511 channels
// dmx_value only 0~255
// For example:
// send_channels(0, 100, 255);//set port0, 100 channel to 255
// send_channels(7, 1, 64);//set port7, 1 channel to 64
//-----------------------------------------------------------


//-----------------------------------------------------------
//function start_catch(dmxrate, dev, filename);
//to starting catch dmx file, dmx file will save to usb disk or sd card "/light" DIR
//dmxrate: 25ms~65535ms, default is 30ms , 33Hz
//dev: "usb" or "sd"
//filename: save as filename, filename don't above 80 char, don't use Chinese filename
// For example:
// start_catch(30, "usb", "mydemo.dmx") ; //each 33Hz(1000/30)) will catch a dmx file to usb/light/mydemo.dmx
// start_catch(50, "sd", "demo2.dmx") ; //each 20Hz(1000/50)) will catch a dmx file to sd/light/demo2.dmx
//----------------------------------------------------------


//----------------------------------------------------------
//function stop_catch();
//call this function will stop catch dmx file function
//----------------------------------------------------------