Project

General

Profile

Bug #313 » smartxxlcd.cpp.patch

dandar3, 09/08/2014 03:14 PM

View differences:

xbmc/lib/smartXX/smartxxlcd.cpp (working copy)
if (iNewLevel==41) iNewLevel=42;
// 42 = x0101010 e.g half on
int itemp = iNewLevel&127|128;
/*
7 Bit Pulse Wide Modulation (PWM) output controll register:
bit 7 not used
......
Value Range: 0 - 127
mask top bit (7)
*/
_outp(0xF701, itemp);
_outp(DISP_O_CONTRAST, iNewLevel&127|128);
}
else if ( g_sysinfo.SmartXXModCHIP().Equals("SmartXX OPX"))
{
(2-2/2)