smujzee / lolshield

Automatically exported from code.google.com/p/lolshield
0 stars 0 forks source link

Add brightness control #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be neat to be able to be able to programatically adjust the
brightness of the display, to be able to fade images in and out. This might
be possible to do by varying the duty cycle of the display, perhaps by
using a second timer to turn the LED pins off early.

Original issue reported on code.google.com by Matt.M...@gmail.com on 7 Jun 2010 at 8:33

GoogleCodeExporter commented 9 years ago
Here's a patch to add brightness control, by dividing the display frequency 
into on and off periods.

The brightness can be configured by calling SetBrightness():

LedSign::SetBrightness(brightness);

Where brightness is a value from 0 to 127.

I'd appreciate feedback on this design. My main concern is that it could 
interfere with adding grayscale support to the library in the future.

Original comment by Matt.M...@gmail.com on 19 Jul 2010 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago
Added in SVN revision 13. May be removed to make way for grayscale support.

Original comment by Matt.M...@gmail.com on 21 Jul 2010 at 5:30