todbot / LinkM

BlinkM controller / programmer and general USB-to-I2C adapter
http://linkm.thingm.com/
13 stars 6 forks source link

Set blinkM startup script via linkM cmd?? #7

Open dunk8888 opened 6 years ago

dunk8888 commented 6 years ago

I there a command to set the start up script vi the linkM cmd line tool,i can play a script but cant set it via this tool.thanks

stonehippo commented 1 month ago

@dunk8888 It's years since you asked this, and maybe you found the answer or don't even have the linkm anymore. But for the sake of posterity and for anyone like me who goes searching for the answer, there's a hint in the source for the linkm-tool for how to set the startup state of a blinkm:

* To set the BlinkM Startup Parameters ('B' akak 0x42) of a BlinkM
* at address 9 to script 0, to play, once, w/ fadespeed 10 & timeadjust 0
* do: ./linkm-tool -v --linkmcmd "0x01,7,0,0x09,0x42,1,0,1,10,0"

So, yes, you can do this with a raw linkcmd.