-
Notifications
You must be signed in to change notification settings - Fork 23
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
Controlling the LED #9
Comments
The little I have seen on this suggests the LEDs are gpio controlled (no level/intensity control) and there is a blue and a red one (no RGB). There’s a command you can run to toggle them but ppsapp seems to set them right back to what they are supposed to be (blue/red). I do not yet know if there’s anything hardware side that would prevent both LEDs from being on at the same time. |
Thanks Guino! Could you share what command you used to change the LED color? I'd love to learn more about ghidra and the ppsapp editing. Will have a look at that soon :) I think it would be cool to have the LED sync to whatever audio is playing (e.g. the volume of the audio or something). |
But like I said: when you use this the ppsapp usually restores the led color right back. |
It is possible to patch ppsapp to disable its control of the leds but if you do that you would have to control it yourself for everything (ppsapp would no longer manage it). If you want to try that let me know and I can probably make a patch for it. |
That would be wonderful actually. Would it be possible to make a combined one also with that audio command you were talking about in the other issue? If there’s anything I can help with, please let me know as well. I really appreciate it man. |
This is UNTESTED and only for version ppstrong-c51-tuya2_lcs-2.9.7.20201020 -- try this patch |
Is this also possible for the 2.9.6 version? I just want the (red/blue) leds to stay off when booted up. That red is on while booting is no big deal. |
@Ierlandfan a specific patch for 2.9.6 would have to be made but I don’t even have confirmation that this is working on 2.9.7 so right now this is just an idea. |
Will test this very soon guys. Sorry for the delay, got caught up with the holiday prepping :) |
Sorry for the long delay between updates. I've tested the no-led ppsapp and it's working fine. I can turn the LEDs on and off without a problem using the command given without it turning back to the original color. |
@JasperMC thanks for confirming this can be done. I'll try to put up instructions on patching to use this feature. |
These instructions are for those who wish to manually control the BLUE/RED LED without having ppsapp change it. Please notice: if you just want to turn OFF the LED you can simply edit tuya_config.json to set "light_onoff" to 0 (no need to patch anything). I am not even going to place this in the main repo instructions because I think the interest on this feature is very limited. Here's how to patch ppsapp for disabling the LED control (so it can be controlled by command line/script using ppsconfig):
|
After liberating my bell I am now curious if there's a way we can change the color of the LED and its brightness. This could be fun to customize.
I'm trying to research this but am hoping someone can help me as well.
I'm currently looking at the "pwm" device in /dev as I suspect the LED is controlled through PWM.
The text was updated successfully, but these errors were encountered: