yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze Themes and Apps] ehmPlankje:
Great tool.... didn't even now that my TP has a LED light :d. But do you have a reason why this program runs fullscreen? I would rather like to keep my windows button, battery status, etc. when using this tool.

Hopefully you will consider it. Until then, keep up the good work!
[Touch Pro, Fuze Themes and Apps] NetRipper:
You're probably confused with one of the other tools posted in this thread (hTorch maybe). The TorchButton from the first post is a console tool. When you start it, you see nothing. You have to start it again to stop the light (or wait until timeout expires).
[Touch Pro, Fuze Themes and Apps] ehmPlankje:
yeah i see... sorry for that (never reply on forums when you get straight out of bed haha)
[Touch Pro, Fuze Themes and Apps] wingnutLP:
quality program, it works great on the X1

THANKS :):):)
[Touch Pro, Fuze Themes and Apps] NLS:
it does?

very interesting :)
[Touch Pro, Fuze Themes and Apps] del4:
Remove 300s upper bound

I agree, as I've had mine running for up to an hour in the past and it had no ill effects, other than draining my already low battery quite a bit!

It seems like the 300s upper limit on the LED is hardcoded, since changing the registry value to higher than that has no effect, even following a SR.

Could you remove this limitation in v1.2 so that we can have full control over the LED light?
[Touch Pro, Fuze Themes and Apps] NetRipper:
Yep was hardcoded to a 300 seconds limit. I'll remove the limit and post a new version in the next few days. It was to safeguard for people forgetting to turn it off.
[Touch Pro, Fuze Themes and Apps] del4:
Great, thanks!
[Touch Pro, Fuze Themes and Apps] NetRipper:
First post has been updated with a new version.

UPDATE 09-11-2008 v1.2:

Finally a new version of TorchButton.

1) Enlarged maximum timeout override from 300 seconds to 86400 seconds (a day).

2) Added 'bright' feature. Note that the light may flicker almost unnoticeable every 750ms. Can't prevent that.

3) For Devs: attached source code of TorchButton to this post.

4) For Devs: I've created a C# library for easy control of the camera led. Also attached to this post. The .zip contains a readme which has examples on how to use it.

(Just fyi, "this post" refers to the first post. ;))
[Touch Pro, Fuze Themes and Apps] DeepThought:
Thank you NetRipper, that's awesome news!
[Touch Pro, Fuze Themes and Apps] del4:
Thanks for the quick update! Curious to try out the superbright feature...
[Touch Pro, Fuze Themes and Apps] NLS:
works great

thanks man
[Touch Pro, Fuze Themes and Apps] TomasNM:
This is my next request for you,skilled developers from me:

Can someone of you try,how fast can the LED blink in 'astable multivibrator mode'? I know,that this is a 5min task to try that for a programmer. It is very interestant feature for me,the 'bike light'. What do you think about gents?
[Touch Pro, Fuze Themes and Apps] NetRipper:
What is a 'astable multivibrator mode'? Is that the bike light you're referring to?

What are the intervals? Like repeating 500ms on and 500ms off?
[Touch Pro, Fuze Themes and Apps] NLS:
I think he means that there are some irregular blinks (like a random interval between 10ms and 500ms).

But since you are at it, why not also a REGULAR interval?

I am not sure TorchButton can get away for long without a config program. :D
[Touch Pro, Fuze Themes and Apps] Igoran:
How do you think, may a TorchButton Bright burn the LED?
[Touch Pro, Fuze Themes and Apps] NLS:
if you find out - tell us :D
[Touch Pro, Fuze Themes and Apps] WDawn:
The bright version is ultra cool! :)

It has an extra feature on top of the 'normal' Torchbutton. The normal Torchbutton switches off after put the TP in stand by mode. The bright Torchbutton however doesn't switch off and keeps on going. This makes it much more usable as a real flashlight.
[Touch Pro, Fuze Themes and Apps] TomasNM:
Astable multivibrator means in electronics a circuit for producing pulses with one frequency and with one pulse length. For me is interestant the frequency 10Hz with pulse width 20ms(that means 20ms on,80ms off repeating,so the LED keeps flashing). I just want to know,what's the maximum frequency,we can achieve with access to external library. Just,if is this mode possible? Yes,when it will be possible,a tool will be welcomed. Yes,bike light.
[Touch Pro, Fuze Themes and Apps] NetRipper:
It should be pretty fast. Only needs a few ms to light up and off. Don't have any equipment to test, but I could pm you a testversion that does the 20/80 if you want.

I've never seen a bike light go 20ms/80ms though. I suspect you mean two different features? :p

Hehe, nice. I didn't even notice that. I guess the standby code doesn't check for the bright thing. ;)
[Touch Pro, Fuze Themes and Apps] evilc:
I have no difference on my TP in regards to it turning off in standby. Normal and bright both turn off a short while *after* I go into standby. Not that I need it to stay on, I just thought I would reply in with my own experience.

Plus my own little tale of how this app saved my ass.

Whilst cleaning my car passenger seat of all the rubbish, I somehow (Don't ask!) managed to throw my car key in the bin. "Oh Noes!" I thought, "I just threw my car key in that bin and it's pitch black, I will never find it!". Then I remembered that I had installed TB *just before I got in the car*. How incredibly good timing! I turned on the torch and immediately spotted the key! Nice one!
[Touch Pro, Fuze Themes and Apps] TomasNM:
Thank you NetRipper very much. What did you mentioned,you don't have any equipment? You haven't a Raphael?
[Touch Pro, Fuze Themes and Apps] WDawn:
Correction: it does turn off, but after about 20 seconds.
[Touch Pro, Fuze Themes and Apps] NetRipper:
I do have a Raphael. By not having the equipment to test, I meant to record and see the highest frequency. :)

I think I'm just going to add a blink function, with "on" and "off" intervals configurable in milliseconds via registry. That way anyone can use it for their own purpose. ;)
[Touch Pro, Fuze Themes and Apps] TomasNM:
That's ok. There's no need to have exact frequency. Just if it seems to blink acceptably. You can use one more registry value,that will be the time in seconds how long it will flash. I can imagine it exactly as TorchButton 1.1,but the led will be not just on,but pulses red from registry. First start app will start blinking for a defined time,next start within this time will stop it...
[Touch Pro, Fuze Themes and Apps] Keland44:
have yall seen this before would be interesting if some of the features in this app could be added to TorchButton

http://www.artamata.com/pocketlight/
[Touch Pro, Fuze Themes and Apps] NLS:
well the only interesting idea is Morse code (but mostly useless idea - except if you have many friends reading Morse code)

the others are just stupid features or just marketing talk of something really simple
[Touch Pro, Fuze Themes and Apps] TomasNM:
Once upon a time,Vijay has an idea to use VJCandela code for sending SOS notification via LED using Morse code. Simple ...---... cyclicaly. Maybe that can be also useful feature(example:You have an accident in dark forest evening or in night,or to calling an incoming ambulance on the road in the night to find you quickly,or to stop someone on highway when needed...). Hope,this feature we will never need in praxis,but the idea is here.
[Touch Pro, Fuze Themes and Apps] Igoran:
As my opinion> the main feature is a working LED in sleep mode (with power button)! Then this future is done, Raphael finaly do the Light function.

I think SOS, morse or bicycle features is a addon? and this features may realaised by a author of a hTorch app: http://xdaforums.com/showthread.php?t=440405
[Touch Pro, Fuze Themes and Apps] TomasNM:
Yes,you're right. These features can be the add-ons. Just for me(my device setup) is the display-off thing not very important,because I have with AEBPlus mapped the Action button long press for display-off,so one more click will do that job. But is JUST my setup. Really,I don't want to make the developers busy with additional features,when they are preparing something different. These features can release anyone skilled in C++ or C#.
[Touch Pro, Fuze Themes and Apps] DeepThought:
I could implement both of the mentioned features into hTorch, thats right. And I probably will since others requested this as well. But I personally would like to see this blinking LED feature as a build-in function into TorchButton with a customizable interval which can be set via registry key. I'm by far not such a good programmer like NetRipper is and that would make my "job" a lot easier! ;)

I also would love to see the "working LED in sleep mode" feature. But I'm afraid that's not possible. As far as I know the LED can only be controlled via some DLL which comes with the Camera software not directly. And this DLL has some hardcoded protection which disables the LED when the device goes into sleep.

So I'm afraid the only possibility would be to prevent the device from falling into standby and to just turn of the display. I'm currently working on this for the next version of hTorch.

@NetRipper, please correct me if I said something wrong! ;)
[Touch Pro, Fuze Themes and Apps] NetRipper:
There is a way to enable the (nonbright) flashlight with low level memory access. But even then the light is turned off when entering standby. The reason is not the HTCCamera1.dll, but the HTC-specific code that is executed when entering standby. Enabling flashlight on low level has no additional value that way, which is why I'm not using it. I know this as I've used this approach to find out where it hung when I was getting Linux to work on the Raphael (display didn't work, but led could show me that it reached some part of the code).

Anyway, I will make a new release with the 'blink' feature. And I think it's not hard to put in SOS as well, so I'll do that too.

@DeepThought, you could use my C# library to easily control the light. I made it real easy that way. ;)
[Touch Pro, Fuze Themes and Apps] del4:
[FR] ScreenLight feature

About the only feature I'd like to see implemented from this app into TorchButton would be the following:

ScreenLight - by showing a bright white full-screen display and disabling the timeout for backlight, gives a softer light than the flashlight which can be great for reading at night.

I seem to recall someone asking if, in addition to the extra-bright option, it would be possible to have a less-bright option. I can see times where this would be a nice option to have as the default brightness is quite high and simply having a white full-brightness LCD would be more than sufficient. This could even be extended by including a slider to adjust the backlight so the user could set it to be as dim/bright as desired.

Thoughts?
[Touch Pro, Fuze Themes and Apps] NetRipper:
This already exists in the Diamond forums, named Flashlight. That's their alternative, as they don't have a camera flashlight.
[Touch Pro, Fuze Themes and Apps] NLS:
Indeed this is an application related to the *** LED ***.

Let's keep it like that.

The only "interaction" with the screen I would like to see, is to turn backlight (or screen) off when LED is on, so that screen light does not interfere with my vision in the dark.
[Touch Pro, Fuze Themes and Apps] NetRipper:
I have this planned, just not working yet. :)
[Touch Pro, Fuze Themes and Apps] del4:
Hadn't seen that app, thanks.
[Touch Pro, Fuze Themes and Apps] del4:
Actually, I don't recall a limitation to only using the *** LED ***. :p The intended purpose of this app is to provide a useful source of light using our devices. Didn't realize the source of the light wast limited... :rolleyes:

Some have asked for a light source that is either less or more intense than the standard LED light, so just thought it would be another option to add in rather than having to use yet another app. Plus, it may use less power than the LED would as well as alleviate some users' concerns about 'blowing' their LED...
[Touch Pro, Fuze Themes and Apps] Sideman7:
I am pretty sure powering the screen takes way more power than the LED. I don't recognize the LED used (Haven't looked that carefully though...) but on the lower setting, I would think that it would run for days (if not a week or more) on end. And as for burning out the LED, that's not likely given that it's not driven too hard. Modern LED's are amazingly efficient and can put out an insane amount of light if heatsinked properly.
[Touch Pro, Fuze Themes and Apps] NLS:
I can point you to at least three other solutions from the top of my head that use the screen as a pseudo-torch (and there are probably many more, I even remember seeing such, 6-7 years ago for PocketPC).

I don't see any reason at all for the developer to spend even five minutes to reinvent the wheel and not concentrate to what the program was intended to do and do whatever tweaks we can achieve in that specific area. AFAIK the NetRipper shares my view on this.
[Touch Pro, Fuze Themes and Apps] NetRipper:
Updated again. Hope this fills some of your needs. Enjoy!

UPDATE 14-11-2008 v1.3:

* Added 'blink' feature. Registry configuration options:

- blinkTimeOnInMs (DWORD), default 500. Configures the time the LED is on.

- blinkTimeOffInMs (DWORD), default 500. Configures the time the LED is off.

* Added 'SOS' feature. More like a 'morse code' feature though. You can set any morse code to be signalled in the registry. Options:

- sosCode (SZ), default " ...---...". Configures the morse code to signal.

- sosDotTimeoutInMs (DWORD), default 200. Configures 200ms LED on, and 200ms LED off for ".".

- sosDashTimeoutInMs (DWORD), default 400. Configures 400ms LED on, and 400ms LED off for "-".

- sosSpaceTimeoutInMs (DWORD), default 1000. Configures 1000ms pause when processing space " ".

* New shortcuts are added for those features.

* Shortcuts are moved to a TorchButton folder within the Programs, for grouping purposes (in case you're wondering where TorchButton went!).

For next version I want to set brightness of the LCD to minimum level (not to turn LCD completely off). Still need to work on this. I'm gone the next few days but I'm aiming for an update somewhere next week.
[Touch Pro, Fuze Themes and Apps] Quake3000:
Thanks alot for the usefull app.

btw have a question how safe is it for the led to be bright? and how long can it stay on for a safe notice so my led don`t die out;) ?
[Touch Pro, Fuze Themes and Apps] skyrunner:
Digital signature / invalid certificate

The software sounds great... But I' was'nt able to install it 'cause my glofiish M800 compalins about a missing digital signature / invalid certificate...

GRUNT!!!

Any way to get rid of this message?

Thanks a lot for your effort!

Sky
[Touch Pro, Fuze Themes and Apps] drramana:
xcellent program

innovative idea....very useful program... working fine in touch pro:)
[Touch Pro, Fuze Themes and Apps] TomasNM:
Thank you very much NetRipper. You have done excelent job,which fulfills exactly my needs. Your're great!
[Touch Pro, Fuze Themes and Apps] NLS:
indeed great job

now the cherry on the cake would be a small (detached from the main application) config that would allow for people not comfortable with registry (i.e. NOT me), to make the settings as they need them

btw, I love the flash function (but set to 100 on - 900 off), the SOS needs some tweaking (for example the spacing between the letters is not normal)
[Touch Pro, Fuze Themes and Apps] NLS:
btw here is the proper "spacing" for morse (in case you ever extend this feature but also for your SOS code):

short mark, dot or 'dit' (·) — one unit long

longer mark, dash or 'dah' (–) — three units long

intra-character gap (between the dots and dashes within a character) — one unit long

short gap (between letters) — three units long

medium gap (between words) — seven units long
[Touch Pro, Fuze Themes and Apps] NetRipper:
Great, thanks. I tried searching for it, but couldn't find it fast enough. So I thought I'd just do it my way. Knew there had to be some kind of formatting about it. ;)

So, you only should need to be able to configure the "unit" time, right? I'll fix this. :)
[Touch Pro, Fuze Themes and Apps] thehyecircus:
Do I have any reason to NOT use the Bright option exclusively? What are the drawbacks? Whats stopping me from deleting the other options and just keeping that one?
[Touch Pro, Fuze Themes and Apps] NetRipper:
Prolonged usage of the bright setting _MAY_ be harmful to your device. I don't think it is, but I haven't tried it longer than a minute yet (haven't had the need either). If anyone dared to try it for an extended period, let us know some results.

Another reason would be that the bright setting consumes more battery power. The LED is brighter and the CPU is making more cycles (as a trick is needed to keep the bright LED on).

But by all means, try to use the bright led for a long time and let us know. Just note I'm not accountable for any damages. :)
[Touch Pro, Fuze Themes and Apps] DeepThought:
I've kept it on for about 10 minutes and the LED became quite warm. Didn't have the need for a more extended period so far (and don't want be the one burning his LED by testing it just to find that out) ;)
[Touch Pro, Fuze Themes and Apps] thehyecircus:
The bright setting is so much better than the dim one.

I guess I could always utilize that PTT feature where the longer it's held it switches to bright.
[Touch Pro, Fuze Themes and Apps] johnny13oi:
I just wanted to comment on this. I am also a candlepowerforum member and know about the uses of LED's. I think that there is still the possibility of burning out these LED's inside the phones if they are high powered LED's which i believe they are. LED's have a very long life expectancy if they are properly driven and have proper heatsinking if they produce large amounts of heat. Given the light output of these phone LED's and being used as camera flash's I would assume that they are sufficiently high powered LED's drawing much more than the typical 25mA of 5mm LED's. And combining that with the probably nonexistant heatsinking of the LED's due to size constraints of the phone, I would believe that these LED's would definitely die or degrade dramatically if they were left on in high powered mode. If these LED's draw anywhere near 1W (~350ma at 3.7V) in high power, I wouldn't leave it on for too long.
[Touch Pro, Fuze Themes and Apps] del4:
Not exactly a scientific test, but using acbPowerMeter, it looks like there is about a 100-150mA difference between running with no LED active and with the LED running at its brightest setting...
[Touch Pro, Fuze Themes and Apps] johnny13oi:
With the LED running at a constant 100-150mA, I would think that this would be fine for short periods of time. I would not however let it run for over 5 minutes. Heat buildup can happen very very quick and with almost no heatsink for the LED's, it would build up even quicker. LED's typically change color output when it is overheating or overdriven. Usually overdriven or overheating white LED's appear really bluish when this is happening. So if you notice a change in color output, I would definitely turn it off and let it cool.
[Touch Pro, Fuze Themes and Apps] NetRipper:
Thanks for your valuable input. :)
[Touch Pro, Fuze Themes and Apps] thehyecircus:
Have we decided on when to use the bright setting and when not to yet? How hot it gets, and how fast it gets that hot, scares me. I think I'd rather settle for lower light, but I want to hear some more first.

But yeah this thing burns up in seconds! But it is bright.
[Touch Pro, Fuze Themes and Apps] NetRipper:
Settle for lower light to be certain. It should be sufficient in the dark anyway. Only the "Bright" shortcut of the application uses the bright setting. All others (normal/blink/sos) use the normal light setting.
[Touch Pro, Fuze Themes and Apps] NetRipper:
Just to update everyone. Just released 1.4 in which the morse code is fixed. Even better, you can now just configure text to be sent and it will convert on the fly. See first post for updates.
[Touch Pro, Fuze Themes and Apps] Praygo:
STROBE LIGHTS!!!! Rave parties! Hahahah i'm having a blast with this.
[Touch Pro, Fuze Themes and Apps] Igoran:
New Feature

Thirst of all, NetRIPER you are the MEN! Great app and great support for it.

I read that you add in next version feature that dim the LCD. I think that would be great if you also add the function that prevent device going to sleep automatically.

Because now, for good using device as torch in long time, we need to manual disable sleep.

Thanks for this amazing app!
[Touch Pro, Fuze Themes and Apps] NetRipper:
Added this to the todo list.

Glad you're having fun :D Setting blink to 10 on and 90 off is a nice strobo ;)
[Touch Pro, Fuze Themes and Apps] future perfectx:
hey im new to the htc. how do i download this program to the phone?
[Touch Pro, Fuze Themes and Apps] DeepThought:
Simply download the cab-file to your PC and than copy it to your phone using ActiveSync / Windows Mobile Device Center / or just a SDcard. Once you have the cab-file on your phone you just need to "execute" it using the file explorer which automatically starts the installation.

HTH
[Touch Pro, Fuze Themes and Apps] johnny13oi:
Hey I have another suggestion, would you happen to know how to be able to incorporate PWM to control the LED brightness? PWM is pulse width modulation which changes the widths(length) of pulses to control brightness. I have this in some of my more expensive LED lights. What it basically is, is that for a low brightness setting, have it on for like say 1/4 of the time like 5ms on 15ms off. Or even a higher frequency at 1ms on 3ms off. The higher the frequency the less susceptible you are to flicker. and you know middle brightness where led is on half the time and high on full time. If you could implement a slider to make it variable brightness with PWM that would be awesome.
[Touch Pro, Fuze Themes and Apps] future perfectx:
when i click on the application torchb~1.005 it says run the application first, then open this file from within the application. how do i do that?
[Touch Pro, Fuze Themes and Apps] future perfectx:
Never mind i figured it out. This program is great! I can see a everyday use out of it. thanks.
[Touch Pro, Fuze Themes and Apps] NetRipper:
Glad you did. ;) I guess you unpacked the .cab on pc instead of installing it on pda ;)
[Touch Pro, Fuze Themes and Apps] Parnassis:
I don't know if it's just me but... When I try to run this while I have the camera open (I mapped the bright LED to the PTT button) I get an error message saying:

"Camera_Init reported an error while initializing. Aborting..."

It's a shame because I would love to be able to toggle the flash while using the camera without using any menus. Does anyone know a solution to this?
[Touch Pro, Fuze Themes and Apps] NetRipper:
The application uses the camera dll. You cannot use it together with the camera application. The camera app has a flashlight option in it, but indeed - you will need to use menus.

Sorry, it's a limitation of the application.
[Touch Pro, Fuze Themes and Apps] future perfectx:
hey I'm sorry for posting on this but i have a question about changing my firmware to 3.5. i have followed some other posts about it but cant seem to get it working can some one give me a more detailed instruction list on to change it. id appreciate it. possibly threw a message not on the thread?
[Touch Pro, Fuze Themes and Apps] NetRipper:
Erm, you're probably posting the wrong thread. If not, I have no clue on what you're talking about.
[Touch Pro, Fuze Themes and Apps] TeknoJnky:
Hello and thanks for your efforts.

I have a question that is more related to your research of controlling the camera led...

Do you think it is possible to hook the camera button & display dimmer events to turn the fuze/touchpro flash into an auto-flash when light levels reach a lower ambient light level?

Basically, when pressing the button to take a picture, check the ambient light via the front panel light sensor (or if there is some other way via the camera itself to detect light levels), then trigger the flash led as the picture is captured.

I was extremely disappointed when I realized the camera's flash functionality was so limited.