All Forums
 Microsoft Windows CE
 .NET Application Development
 Screen Brightness in c#
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

tfillerup

6 Posts

Posted - 16 Dec 2009 :  12:14:06  Show Profile
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  Show Profile  Email Poster
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 )


Go to Top of Page

tfillerup

6 Posts

Posted - 18 Dec 2009 :  13:17:57  Show Profile
Yeah, i read that, but I am not sure how to apply that using C#. Could you give me an example?
Go to Top of Page

ctacke

877 Posts

Posted - 18 Dec 2009 :  13:33:07  Show Profile  Email Poster
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.
Go to Top of Page

tfillerup

6 Posts

Posted - 21 Dec 2009 :  11:23:15  Show Profile
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?
Go to Top of Page

Russ-Eurotech

273 Posts

Posted - 21 Dec 2009 :  17:17:04  Show Profile  Email Poster
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.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000