Author |
Topic |
|
tfillerup
6 Posts |
Posted - 16 Dec 2009 : 12:14:06
|
Can anyone tell me how to set the backlight level on a zeus board using c#?
thanks |
|
Russ-Eurotech
273 Posts |
Posted - 17 Dec 2009 : 19:00:38
|
From our development team: Nothing has been written for this. But it's on a GPIO and it is described in the manual page 44.
Zeus Technical Manual ( click here - Zeus-TM-Issue-E )
|
 |
|
tfillerup
6 Posts |
Posted - 18 Dec 2009 : 13:17:57
|
Yeah, i read that, but I am not sure how to apply that using C#. Could you give me an example? |
 |
|
ctacke
877 Posts |
Posted - 18 Dec 2009 : 13:33:07
|
It's actually not at all straightforward.
The general process is that you first have to determine if this is an on/off or a PWM (according top the manual, your backlight could be driven either way). You then have to map out the GPIO10 registers with MmMapIoSpace or VirtualAlloc (and it's probably not 64k aligned, so you'll have to map the 64k boundard and then offset). You then set the function (PWM or GPIO) and then the direction and state/value.
If this is CE 6.0, it's even more complex becasue those APIs are restricted so you'd have to write a generic driver that would do the register mapping and have the app call the driver. |
 |
|
tfillerup
6 Posts |
Posted - 21 Dec 2009 : 11:23:15
|
I noticed that there is the ADSCF dll that has some brightness control functionality, but it is linking to keybddr.dll that I don't seem to have on my system. Is there something similar for the Zeus board? |
 |
|
Russ-Eurotech
273 Posts |
Posted - 21 Dec 2009 : 17:17:04
|
From one of our developers:
Some of our earlier BSPs managed the backlight in the keyboard driver, (not sure why) and some manage with a micro-controller that we use a driver named smartio.
ADSCF might offer some useful code, but not for the backlight.
Unfortunately, we have no equivalent driver for Zeus.
|
 |
|
|
Topic |
|