View Single Post
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#7
@G :
you can add how many patterns you want.
if you want hdd like led there is no way with led chip. this is designed to display a fixed pattern like a beacon when a specific event trigger it. random patterns are difficult to make and controll. the only way to have hdd-like behavior is by direct alter led current.
so yo must make a "white" pattern and activate it and after that you can drive the leds as you want by shell script*, pyton script or c program


* command is
echo X > /sys/class/leds/lp5523:r( or g, or b )/led_current where X is led current in 0.1 mA step so 255 value mean 25,5 mA .
the led brightness is this value weighted by pattern value .Example :
pattern PWM 128 and 10 mA ( echo 100 > .... ) mean 5 mA
 

The Following 2 Users Say Thank You to blue_led For This Useful Post: