2007-10-02, 23:48
Hi,
I have a SmartXX LT OPX and soldered some leds on it.
Now the problem I'm having, is that I can only control the Red channel with the LCD backlight value, and the Green and Blue channels with the pwmcontrol (via python)
Sidenote: A solution I wouldn't mind to use is something like "lcd.backlight" in the built-in commands, except that it isn't implemented.
So I looked into the code and saw
and furthermore:
And when I check this with the SmartXX LT OPX 'datasheet', it shows me:
0xf70e doesn't exist!
Also SMARTXX_PWD_RED actually is Green on the pinout.
and likewise for SMARTXX_PWD_GREEN which is my 'blue'
So is this a bug / incompatibility?
I think there should be a check for the SmartXX version or something inside the LED.cpp or via a smartXXled.cpp subclass.
Would be nice to see this working correctly, but unfortunately, I do not have the right equipment/knowledge to compile XBMC myself atm.
cheers,
tinux
I have a SmartXX LT OPX and soldered some leds on it.
Now the problem I'm having, is that I can only control the Red channel with the LCD backlight value, and the Green and Blue channels with the pwmcontrol (via python)
Sidenote: A solution I wouldn't mind to use is something like "lcd.backlight" in the built-in commands, except that it isn't implemented.
So I looked into the code and saw
Code:
// utils\LED.h
#define SMARTXX_PWD_RED 0xf70c //PWM1: SmartXX V3 port for RGB red output
#define SMARTXX_PWD_GREEN 0xf70d //PWM2: SmartXX V3 port for RGB green output
#define SMARTXX_PWD_BLUE 0xf70e //PWM3: SmartXX V3 port for RGB blue output
and furthermore:
Code:
// lib\smartXX\smartxxlcd.cpp
#define DISP_O_LIGHT 0xF701 // Display Port brightness control
And when I check this with the SmartXX LT OPX 'datasheet', it shows me:
Code:
F701h (write) PWM1 out (brightness control)
..
F70Ch (write) PWM2 out (brightness control)
F70Dh (write) PWM2 out (brightness control)
(..end of table)
0xf70e doesn't exist!
Also SMARTXX_PWD_RED actually is Green on the pinout.
and likewise for SMARTXX_PWD_GREEN which is my 'blue'
So is this a bug / incompatibility?
I think there should be a check for the SmartXX version or something inside the LED.cpp or via a smartXXled.cpp subclass.
Would be nice to see this working correctly, but unfortunately, I do not have the right equipment/knowledge to compile XBMC myself atm.
cheers,
tinux