Serial commands for blade length and brightness adjustment in real time?

Are there serial commands for blade length and brightness adjustment in real time? I think it would be super beneficial to have these 2 commands with a simple value, which can be applied to a slider (seekbar) in the app to change blade length and brightness in real time. And also read the current values by request commands. Is it even possible in ProffieOS?

Something like this to set blade length to 130 pixels and 100% brightness:

lngth 130
brght 100

Update:
I’ve added required defines to the config and tested existing commands set_blade_length and set_blade_dimming, set_blade_dimming works, but set_blade_length doesn’t work. I’m on OS 8. Also these commands don’t have to be that long, is it possible to update them to shorter version so it’s more efficient for bluetooth?

These commands are already in use, changing them is not a good idea.

When you use set_blade_length, do you get a “Whut?” or does it just not work?
Also, are you providing a blade number to set_blade_length?

Maybe I’m just not using it correctly? I send set_blade_length 100 for 100 pixels, that’s it. Am I missing something else? And why it does it just reboots the preset and does nothing over USB and shuts off all pixels and corrupts the data files on SD card via bluetooth, so I have to delete all temporary data files from the card.

set_blade_length expects two numbers: the blade number, and then the length, so something like:

set_blade_length 1 100

Get blade length also expects a blade number:

get_blade_length 1

It’s not supposed to crash if you use it wrong obviously, I’ll take a look at that tonight.

1 Like

Ah I see, thanks!

Ok it works now but the annoying thing is that it reignites the blade every time. So if I set it up via the slider control, it will reignite the blade every time I move the slider thumb….

Unfortunately there isn’t an easy way around that right now.