Hi all,

Working on the lcd_backlight, I run into a chicken vs egg situation,
along with some other stucture issue's.
Basicly I want to have a generic backlight API that support both
variable and binary backlight.
At the lowest level, I need either the (exisiting :) pwm libs or just
use a digital IO pin.
When I have digital backlight, I want to map the variable to digital
(<128 is off, >=128 is on).
But when I have variable backlight, I want to map the digital api to
the variable one (on = 255, off = 0).

So I can't do this automaticly, just by checking defined procedures.
What would be a good way to do this?

The most obvious way is to define a constant with 1...4 means the
appropriate pwm value. Zero or undefined means digital backlight.

Would this be the right way to go?

Joep

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to