M-H wrote: > > Edit: > It seems to have a PWM backlight controlled by 'pin 13' > Source : > https://github.com/pimoroni/pirate-audio/blob/master/examples/backlight-pwm.py
Good find. The 'pigs' program that comes with the pigpio.tcz extension allows pins to be controlled by PWM. So in fact it's very easy to control the brightness on this board. Maximum brightness: Code: -------------------- tc@piCorePlayer:~$ pigs PWM 13 255 -------------------- Off: Code: -------------------- tc@piCorePlayer:~$ pigs PWM 13 0 -------------------- It should therefore be straightforward to write an applet to call 'pigs'. In fact, there are already a couple of applets to start from - there's the pCP one that is intended for the official display, and there's one that was written for the Joggler. Either of those should be a good basis for a Pirate Audio brightness applet. ------------------------------------------------------------------------ chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=111502 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix