Controlling LED lights via Android Wear - Other Tools & General Discussion

Hey guys, I'm totally new in android development.
I hope my questions are one the right point here.
My Setup:
1) LED light stripe controlled by Bluetooth with apps called "Flux Bluetooth" or "Magic Light".
2) Ticwatch E with latest Wear OS
My idea:
I want to control the LED by easily hitting a button on my Ticwatch. For the start an on/off switch would be great.
I tried some stuff like MacroDroid, but that didn't do the job.
Do you guys have any idea how i could get to the target?
I appreciate you help. Thx in advance. :victory:

Try with ifttt.com

Related

Disable the bluetooth light

Is there a reg hack to turn off the blue bluetooth light? I hate having 2 flashing lights on all the time (One blue and one green).
Thanks
I have installed Microsoft voice command 6.1 french and then the blue light turned off!
it is expensive to turn a light off but it works
(by the way if any body knows how to turn it one I'll be pleased to know...)
DXL007 said:
Is there a reg hack to turn off the blue bluetooth light? I hate having 2 flashing lights on all the time (One blue and one green).
Thanks
Click to expand...
Click to collapse
I will be please to be able to turn the green flashing light off too. I know that the flashing light indicates that the phone is on, but still annoying specially at night (please do not tell me to turn the TC upsidedown)
LOL, that's funny... Any way there has to be a way to turn them both off
There is a way. You know how to do a soft reset - you put a small thing in the reset hole.
If you want to disable the lights, do the same thing, but instead of putting a small thing in the reset hole, you put it on the light. You need to press really really hard... ;-)
However, there is no way to get them turned on again...
johncj said:
There is a way. You know how to do a soft reset - you put a small thing in the reset hole.
If you want to disable the lights, do the same thing, but instead of putting a small thing in the reset hole, you put it on the light. You need to press really really hard... ;-)
However, there is no way to get them turned on again...
Click to expand...
Click to collapse
Thanks for that awsome fix...lol however, I would like a little less violent solution....
This could be done in some devices with Tweaks2k2 .NET (http://www.tweaks2k2.com/portal/staticpages/index.php?page=20050224182009983). I don't know if this could work for Polaris too.
athanaso77 said:
This could be done in some devices with Tweaks2k2 .NET (http://www.tweaks2k2.com/portal/staticpages/index.php?page=20050224182009983). I don't know if this could work for Polaris too.
Click to expand...
Click to collapse
No I have this program, tried this first. I doesn't work.
Anyone have an answer?
Try this
Try this one
It works great on my TC. It's written for the Kaiser but also works on the TC. I've turned off all my LED's except when I've missed a sms or call. It's in Dutch but the interface is pretty clear so I don't think you'll have any problem controlling it. If so let me know.
The only downside with this program is that you can't control the WLAN LED. If you turn off the Phone LED (green flickering) the WLAN LED also gets turned off. Another thing is that the orange LED doesn't light up anymore when you charge your device. Hopefully someone will write a similar program especially designed for the TC. But apart from that it's a neat little program.
Cheers.
Found a fix! This program is awsome. It is for the Tilt, but works great on my TC!
Thanks for this.
It seems to be written for the Kaiser and says that its freeware as it installs.
Seems to work fine on my Orbit2.
I've now turned off both my lights as default - they should illuminate if I miss a call / get mail etc.
I do some work with User Interfaces for avionics.
Cardinal rule - "flashing lights are an exception, not default mode of operation".
ALL flashing lights
Thanks for this, works a treat on my Touch Cruise / Orbit 2
Maybe this link deserves its own post... took a while to find it
tigerpower said:
I have installed Microsoft voice command 6.1 french and then the blue light turned off!
it is expensive to turn a light off but it works
(by the way if any body knows how to turn it one I'll be pleased to know...)
Click to expand...
Click to collapse
Hmm! That explains why my BlueTooth LED stopped working - I recently installed M$ VC too... Weird.
Anyhow - while you've found a solution to turning off you LEDs, I thought I'd suggest another thing worth looking at for controlling them, for future reference - nueLED... It lets you redirect different LEDs. Still won't turn my BlueTooth LED back on though!

[APP] TorchButton v2.3, using camera LED as flashlight [UPDATED Dec 8]

Continuing my quest of using the LED as flashlight for my new HD2, I updated TorchButton to support the HD2 as well.
Dropped your keys? Finding something behind the bench? Performing surgery on a computer and need to find that jumper on the mainboard?
This is a simple application built for some HTC devices that have a hardware LED, normally used to take pictures in the dark. However I found the LED to be perfect to be used as a handy pocket flashlight.
Usage
There is no GUI for this application. Just start TorchButton to enable the LED on the back of your device. Start TorchButton again to turn it off.
Check out the readme if you're an advanced user and wish to change some registry settings, i.e. to allow a longer maximum time the LED is enabled.
Known issues
- [Fixed] New icons are not working when TorchButton is installed to Storage Card
Todo
- Create an app to configure the registry settings
- See if support for Omnia Pro (B7610) is feasible (someone should send me the related dlls...)
- [Done] Add a seperate timeout for bright mode
- [Done] Add blink mode with bright led
- [Done] Use new icons provided by tnyynt
- [Done] Add support for Omnia (the one found here)
- [Impossible] See if it's possible to control leds seperately ('economic mode') Sorry, this is not possible. (Tech-talk: setting a single GPIO enables both LEDs. There doesn't seem to be a GPIO for each LED seperately.)
Wishful thinking
- Camera app to interpret the morse
History
Version 2.3
- Fix icons not showing in HTC Sense or WM 6.5 start menu when installed to Storage Card.
Version 2.2
- New icons for all TorchButton apps (thanks tnyynt!). These only work in WM6.5 and up. Older OS's will still see the old icons.
- Added registry setting to use bright setting in blink mode (see BlinkUsesBrightMode).
- Bright mode now has a seperate timeout, configurable in registry (see BrightModeTimeout).
- Added support for Samsung Omnia i9x0 devices (hopefully they all work). Thanks to raph/zemrwhite2/PaSSoA. Thanks to Chainfire for testing on his Omnia i900L.
- [edit] Shortcut names have changed. I found them nicer this way, no two-line icons. And the text is now also not cut-off when added as shortcut in the home screen.
- [edit] Improved handling of bright mode. It should stop immediately now when pressed again, instead of waiting for a 500ms interval. This makes BlinkUsesBrightMode possible combined with low intervals for blink mode.
- [edit] Soft-reset your phone after upgrading from an older version! Else the new icons will not show.
Version 2.1
- Bright mode is now support on the HTC HD2 (Leo).
- Added a one-time warning message when bright mode is used for the first time.
Version 2.0
- Initial version with support for the HTC HD2 (Leo) (bright mode is not supported on the Leo)
Version 1.x
- Support for the Touch Pro
Dont think about something. Untill i read your post. This could be handy sometimes. Thnx
Awesome man I was just thinking how I missed that
Btw what's missing for bright mode to work? If I'm not mistaken there is a brighter mode just before taking a pic.
Thanks! I was dissapointed that hTorch didn't work on the HD2 now I got this. Wonderful!
Great ! thanks
Have it on my Omnia and was hoping to have it for my future HD2 !
You're all welcome! Glad to hear you like it.
12aon said:
Awesome man I was just thinking how I missed that
Btw what's missing for bright mode to work? If I'm not mistaken there is a brighter mode just before taking a pic.
Click to expand...
Click to collapse
The mode is there, but it's not as easily called as it was on the Touch Pro. In fact I haven't found the API call at all yet. May need some hacking around the API to get that to work. The normal mode produces _quite_ the amount of light though, it's even more light than the bright mode of the Touch Pro thanks to the dual led.
Zero Masamune said:
Thanks! I was dissapointed that hTorch didn't work on the HD2 now I got this. Wonderful!
Click to expand...
Click to collapse
hTorch will work again once I update the C# wrapper to support the Leo, as hTorch makes use of my C# library. I'll do that somewhere in the upcoming week.
Great, works perfect ! Txs
Can anyone confirm this don't burn anything out? On the X1 the light modules weren't heatsinked properly and caused vibrator motor to screw up after 15secs use as a torch.
Thanks!
kinnyfaifai said:
Can anyone confirm this don't burn anything out? On the X1 the light modules weren't heatsinked properly and caused vibrator motor to screw up after 15secs use as a torch.
Thanks!
Click to expand...
Click to collapse
I can't confirm it won't ever burn out. However, realise that enabling the LED is actually the same as using your camera with the lights on in the dark. This _shoud_ be possible for prolonged times as well.
Were you using the 'bright' setting on the X1? (If that's possible there.) That might explain it better... otherwise you could just send in the device for repair, as it's normal use of the device. Especially if it's after only 15 seconds.
NetRipper said:
I can't confirm it won't ever burn out. However, realise that enabling the LED is actually the same as using your camera with the lights on in the dark. This _shoud_ be possible for prolonged times as well.
Were you using the 'bright' setting on the X1? (If that's possible there.) That might explain it better... otherwise you could just send in the device for repair, as it's normal use of the device. Especially if it's after only 15 seconds.
Click to expand...
Click to collapse
It was a known problem that the LEDs weren't heatsinked properly on the X1 and there was a huge warning on using hTorch. I've not installed hTorch and never used the LEDs on my X1 as a torch cos of this oversight by the manufacturer. I do miss being able to use the LEDs as a torch though, it's very handy.
Heej nice, i come from oud-Beijerland
nice app, but bright mode doesn`t work for me..
NetRipper said:
Continuing my quest of using the LED as flashlight for my new HD2, I updated TorchButton to support the HD2 as well.
Dropped your keys? Finding something behind the bench? Performing surgery on a computer and need to find that jumper on the mainboard?
This is a simple application built for some HTC devices that have a hardware LED, normally used to take pictures in the dark. However I found the LED to be perfect to be used as a handy pocket flashlight.
Usage
There is no GUI for this application. Just start TorchButton to enable the LED on the back of your device. Start TorchButton again to turn it off.
Check out the readme if you're an advanced user and wish to change some registry settings, i.e. to allow a longer maximum time the LED is enabled.
History
Version 2.0
- Initial version with support for the HTC HD2 (Leo) (bright mode is not supported on the Leo)
Version 1.x
- Support for the Touch Pro
Click to expand...
Click to collapse
20mihalko said:
nice app, but bright mode doesn`t work for me..
Click to expand...
Click to collapse
Isn't it clearly stated that brightmode doesn't work.......jeez....dude...read
ET said:
Isn't it clearly stated that brightmode doesn't work.......jeez....dude...read
Click to expand...
Click to collapse
sorry, my mistake
kinnyfaifai said:
It was a known problem that the LEDs weren't heatsinked properly on the X1 and there was a huge warning on using hTorch. I've not installed hTorch and never used the LEDs on my X1 as a torch cos of this oversight by the manufacturer. I do miss being able to use the LEDs as a torch though, it's very handy.
Click to expand...
Click to collapse
The vibrate function does not work at all on my X1 after installing and using hTorch. User beware..!
This is my next phone when O2 decide to put it on their shelves, and hopefully its built better than the X1.
Any chance of some source code?
I've been looking through the HD2 camera drivers, and have found a few things that should be the LED (can't test it as I have no device), but am wondering if it's the same method as yours!
l3v5y said:
Any chance of some source code?
I've been looking through the HD2 camera drivers, and have found a few things that should be the LED (can't test it as I have no device), but am wondering if it's the same method as yours!
Click to expand...
Click to collapse
Here are the important code snippets of the API that I'm using. The methods were pretty obvious (luckily).
typedef int (__stdcall *LEO_INIT)();
typedef int (__stdcall *LEO_SETCURRENT)(DWORD dw1);
...
LEO_INIT InitFlashLight;
LEO_SETCURRENT PMICFlashLED_SetCurrent;
...
hCamera=LoadLibrary(L"CameraPlatform.dll");
...
InitFlashLight = (LEO_INIT) GetProcAddress(hCamera, L"InitFlashLight");
PMICFlashLED_SetCurrent = (LEO_SETCURRENT) GetProcAddress(hCamera, L"PMICFlashLED_SetCurrent");
...
InitFlashLight(); // must be called before SetCurrent has any effect
...
PMICFlashLED_SetCurrent(0); // turns it off
PMICFlashLED_SetCurrent(1); // turns it on
There's also a PMICFlashLED_SetMode(x); but I haven't been able to figure out what it does. As far as I could see when disassembling it wants one parameter.
If you have any ideas on the bright mode, they'd be more than welcome. If you want the full source to make some modifications or to toy with it, let me know.
NetRipper said:
Here are the important code snippets of the API that I'm using. The methods were pretty obvious (luckily).
typedef int (__stdcall *LEO_INIT)();
typedef int (__stdcall *LEO_SETCURRENT)(DWORD dw1);
...
LEO_INIT InitFlashLight;
LEO_SETCURRENT PMICFlashLED_SetCurrent;
...
hCamera=LoadLibrary(L"CameraPlatform.dll");
...
InitFlashLight = (LEO_INIT) GetProcAddress(hCamera, L"InitFlashLight");
PMICFlashLED_SetCurrent = (LEO_SETCURRENT) GetProcAddress(hCamera, L"PMICFlashLED_SetCurrent");
...
InitFlashLight(); // must be called before SetCurrent has any effect
...
PMICFlashLED_SetCurrent(0); // turns it off
PMICFlashLED_SetCurrent(1); // turns it on
There's also a PMICFlashLED_SetMode(x); but I haven't been able to figure out what it does. As far as I could see when disassembling it wants one parameter.
If you have any ideas on the bright mode, they'd be more than welcome. If you want the full source to make some modifications or to toy with it, let me know.
Click to expand...
Click to collapse
That's what I'd come to as a conclusion, so glad that works!
Is there any need to un-init the flash light?
PMICFlashLED_SetMode will probably need some playing around, though might enable your "bright" mode. Will have a play with that when I get an HD2!
l3v5y said:
That's what I'd come to as a conclusion, so glad that works!
Is there any need to un-init the flash light?
PMICFlashLED_SetMode will probably need some playing around, though might enable your "bright" mode. Will have a play with that when I get an HD2!
Click to expand...
Click to collapse
There doesn't seem to be an un-init function. However, the debug console shows that it detects when the DLL is being attached to or detached from, so there's probably some cleanup code there.
I also haven't found any side-effects yet. TorchButton works fine even when the camera app is running. They don't interfere with eachother (other than toggling the LED to their own behalf). On the Touch Pro it wasn't possible to run TorchButton and the camera app at the same time. Not that I ever wanted to, but still.
In regard to that mode function. It must be for something. I tried using it in various ways already but it didn't matter. Maybe you'll have more luck
might be confused right now, but seems that when in camera mode, and battery is below 50% you cant use the flash - anybody know if this will affect the app?
haven't got my hd2 yet so cant help you out, but there's a thread under the Leo -- > Leo sub-forum
cheerios!

Flashlight app with lockscreen widget

I just added Lockscreen widgets to my app TouchLight which makes it pretty sweet.
Why not just use an led toggle in the notifications? Good question anon, the lock screen widget gives you access to multiple on screen lights as well as the led. It also turns down the screen brightness and works really well for being able to toggle the light on and off as often as you like.
LINK
Hope you all like the app.
MinceMan said:
I just added Lockscreen widgets to my app TouchLight which makes it pretty sweet.
Why not just use an led toggle in the notifications? Good question anon, the lock screen widget gives you access to multiple on screen lights as well as the led. It also turns down the screen brightness and works really well for being able to toggle the light on and off as often as you like.
LINK
Hope you all like the app.
Click to expand...
Click to collapse
Hey Bro,
I need help with coding.
i created a flashlight application by using camera API getCamera()
it works but when the screen goes off or i minimize the application the led light turns off.
looking forward for your reply.
thanks in advance.
and BTW nice work with your app. :good:
a-ssassi-n said:
Hey Bro,
I need help with coding.
i created a flashlight application by using camera API getCamera()
it works but when the screen goes off or i minimize the application the led light turns off.
looking forward for your reply.
thanks in advance.
and BTW nice work with your app. :good:
Click to expand...
Click to collapse
The LED is tricky, lots of devices have a lot of different quirks with them so make sure your issues are not devices specific. When I was programming the LED stuff awhile ago I remember having the opposite problem.
I don't know about getCamera() and don't see anything about it in the docs. I use camera = Camera.open() (the rear camera is the default). I have to release the camera (camera.release()) on pause or else it caused problems with the stock camera app. To turn the light on I set the flash mode, parameters and then startPreview. I found this to work on the most devices. Some devices like autoFocus to be set also but a greater amount hate it.
Also remember that you have to give your users a way to turn it off when the app is not opened. I would recommend a notification. If they have to reopen your app through multitasking to turn it off that's a "fail, one star, uninstall" type of a thing.

LED Notification Control?

On my original G Flex I was able to use an app called Light Manager, and that worked flawlessly. It seems Lollipop doesn't want to play nice. One of the features I became most accustomed to was the ability to know exactly what app had a notification before even turning on the screen.
Anybody had any luck controlling their LED color and flash rate based on specific app notifications? If so, what app do you use?
Light Flow
UPDATE:
I got Light Flow working. I'm not sure what exactly I did, but it involved toggling the sound settings until I was on loud (sound on) mode. I toggled the Notification LED switch in the settings. I have Light Flow running in Root mode, but I'm pretty sure it was working before I toggled that. I also have it controlling led:flash_0, led:flash_1, and wled under the Additional LEDs found section.
As LED control was one of the most important features for me, I'm not going to futz any further with what I have working. However, if others experience the issue, they're welcome to try each of these things individually to isolate what actually got it to work.
Lightflow not working with Flex 2
Hey Cmcarboni,
would you be so kind as to post your settings with which your Flex 2 functions with Lightflow?
The led:flash_0 and led:flash_1 I can get to work, but I am just interested in the front notification LED and tried nearly every combination of settings without any success.
Thanks in advance!
Edit: It's the H955 with Android 5.1.1 (V15c-EUR-XX)

RGB controller compatible with android auto aka google driving assistant

Good morning! new member here so please excuse if i make any misteps...
I recently got RGB lights for my 2020 Regal. I got the app installed on my phone and everything is/was great.
Then i realized the app wasn't available on android auto. Which surprised me since the product was specifically made for a car so i guess i kinda assumed i would be able to control the lights from the dash.
Does anyone know of any LED RBG light apps that work with android auto, or are their any geniouses here that could upgrade an existing app to be compatible with AA?
Thank you,
matt
Zatarah said:
Good morning! new member here so please excuse if i make any misteps...
I recently got RGB lights for my 2020 Regal. I got the app installed on my phone and everything is/was great.
Then i realized the app wasn't available on android auto. Which surprised me since the product was specifically made for a car so i guess i kinda assumed i would be able to control the lights from the dash.
Does anyone know of any LED RBG light apps that work with android auto, or are their any geniouses here that could upgrade an existing app to be compatible with AA?
Thank you,
matt
Click to expand...
Click to collapse
Is unit an MTCD device? Post Android system information including MCU version
lights are: XK Glow Underglow + interior LED Accent Light Kits
"New Style 8x24" Tubes XKchrome Car S
KS-Car Standard"
my phone is a tmobile note 20 ultra
One UI version 5.1 & Android version 13
I assume MCU has something to do with the car. i don't know how to find that.
Thank you for your time and assistance!!

Categories

Resources