Assuming the device has it, I understand it to be...
// set == false, return the current level, but do not change the level.
// set == true, return the current level and then change to the new level.
// level = 0..255, where 0 is minimum and 255 is maximum.
UInt8 SysLCDBrightness(Boolean set, UInt8 newBrightnessLevel);
On Wed, Sep 24, 2008 at 2:18 PM, Dmitry Grinberg <[EMAIL PROTECTED]> wrote:
> 1 is not full
>
> On 9/24/08, Tam Hanna <[EMAIL PROTECTED]> wrote:
>> Hello Luc,
>> long time no hear, my old friend!
>>
>> The API is a system only one called SysLCDBrightness. PLEASE in the name of
>> god try out the values for the UInt8 - 0 means off, 1 means full and then
>> its 2 to 255 for higher brightnesses!
>>
>> I have tested this on all kinds of HPC ranging from the humble IIIc to the
>> cutting edge Centros. Here is some sample code:
>>
>>
>> //Brightness module
>> if(local.modifyscreen)
>> {
>> err = FtrGet(sysFtrCreator, sysFtrNumHwrMiscFlags, &flags);
>> if (!err)
>> {
>> if ((flags & hwrMiscFlagHasSWContrast))
>> {
>> if(local.wirelessscreen.snoopcontrast)
>>
>> local.wirelessscreen.contrast=SysLCDContrast(true,1);
>>
>> SysLCDContrast(true,local.dockedscreen.contrast);
>> }
>> }
>> err = FtrGet(sysFtrCreator, sysFtrNumHwrMiscFlagsExt,
>> &flags);
>> if (!err)
>> {
>> if ((flags & hwrMiscFlagExtHasSWBright))
>> {
>> int realbrightness;
>> if(local.wirelessscreen.snoopbrightness)
>> {
>>
>> realbrightness=SysLCDBrightness(false,2);
>> switch(realbrightness)
>> {
>> case 0:
>>
>> local.wirelessscreen.brightness=0;
>> break;
>> case 1:
>>
>> local.wirelessscreen.brightness=254;
>> break;
>> default:
>> realbrightness--;
>>
>> local.wirelessscreen.brightness=realbrightness;
>> break;
>> }
>> }
>> switch(local.dockedscreen.brightness)
>> {
>> case 0:
>> SysLCDBrightness(true,0);
>> break;
>> case 1:
>> SysLCDBrightness(true,2);
>> break;
>> default:
>>
>> realbrightness=local.dockedscreen.brightness + 1;
>>
>> SysLCDBrightness(true,realbrightness);
>> break;
>> }
>>
>> }
>> }
>> }
>>
>> All the best
>>
>> Tam Hanna
>>
>>
>>
>> --
>> For information on using the ACCESS Developer Forums, or to unsubscribe,
>> please see http://www.access-company.com/developers/forums/
>>
>
>
> --
> ----
> Best Regards,
> Dmitry Grinberg
> (847) 226 9295
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>
--
[Jeff Loucks, Gig Harbor, WA, USA]
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/