-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strobe flash is not as fast as the official app #4
Comments
Thanks for opening your first issue here! 🎉 |
Thx for the report. |
I just checked with my controller and it works just like your expected behaviour.
results in a strobe that flashes multiple times per second (I would guess around 5 fps). |
My hardware is from https://www.amazon.com/gp/product/B075X8TJCD/. Bought it about a week ago. I tested other functions (RED_GRADUAL_CHANGE, etc) and timed how long one cycle takes. At speed = 255, it takes about 15 seconds inbetween fading into red which similar to setting speed to 50% on S panel. These are some of the packets captured and compared.
Using android app:
|
Setting speed to 254 results in same packets as 100% on S panel. Seems like 254 is max speed for me and 255 actually slows down the functions for some reason. |
Looking at your package captures it looks like a value of 1F (so 255 - 31 = 224) seems to equal 0% and 01 (255 - 1 = 254) equals 100% speed. It might be that I got this wrong but since it does work on my controller I guess there are different firmwares in the wild. |
Looking at the lib my work is based on it seems I really got it wrong:
|
@penandlim I tested the 255/254 values and it indeed seems like it does not make a difference. However values lower than 224 do increase the latency so 1F does not seem to be the real limit. Could you test that on your device? If so I would like to keep those values even though they might not be very useful to most users. |
Describe the bug
Maximum speed for strobe flash function is a lot slower than what the official app allows you to set.
To Reproduce
Steps to reproduce the behavior:
( flashes about 5 - 10 times per second)
device.set_function(FunctionId.RED_STROBE_FLASH, 255)
Expected behavior
device.set_function(FunctionId.RED_STROBE_FLASH, 255)
should be as fast as what the official app (5-10 flashes per second). But instead I get about 1 flash per 3 seconds ish.The text was updated successfully, but these errors were encountered: