LED On Call : Разработка и программирование : Форум


 diezil:
24.12.13, 01:57
 App blinks camera flash LED when receiving phone call, same as elf =)

/**********************/

App мигает вспышку LED при получении телефонный звонок, такой же, как эльф =)

[ Редактировано diezil в 23.12.13 21:57 ]

Прикрепленный к сообщению файл:

LEDOnCall.zip LEDOnCall.zip (261.36 kb; 10 hits) Скачать файл

 zapret:
27.12.13, 19:09
 nice. work in my galaxy s3
can you add brightness control ?

 diezil:
28.12.13, 01:25
 Not without hacking the hardware driver unless the manufacturer includes its own API (some do) but they are phone specific =(

To correctly adjust the brightness of an LED you use PWM (pulse wave modulation), in sort you turn it on/off really fast and adjust the timing to regulate the brightness, (some LED's have internal chips for this).

BEWARE a lot of apps in the android market that do it simply increase the voltage sent to the LED, this is very bad and will burn out your LED (unless its a special LED), I have first hand experience of this with a C902 :oops:, so be careful if you use one of those apps.

But in short the answer is no =(

URL этой темы:
https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=5740

© 2005-2018 supertrubka.org