2008-09-13, 00:23
For people who have a SmartXX v3 and (not tested) LT OPX, I have made a patch which enables you to use the general I/O (GPIO, known as Coffee Cooker).
The ticket number is 4870.
I've also posted a demonstration video (switching LEDS) on YouTube.
You can activate an output with the following command:
System.CoffeeCooker( port, value )
Where port is 0..3 for the port number.
and value is 0 or 1 to switch it off or on.
Direct commands:
(http):http://xbox/xbmcCmds/xbmcHttp?command=Ex...ooker(3,1)
(ftp):site System.CoffeeCooker(3,1)
(python):xbmc.executebuiltin( 'System.CoffeeCooker(3,1)' )
Also in Python, you can use xbmc.getGPIOState(3) to read the current port state, which you can use to highlight a button.
The hardware is simple: it's similar to the PWMControl hardware pins, so if you connect LEDs, you must add a resistor.
The four switches available all switch to ground, which means you have to supply a positive voltage.
In the video I used +5v with 220 ohm resistors on each green LED connected to a rj45 (network) socket, so I can abuse plain network cables
Cheers,
Tinux
The ticket number is 4870.
I've also posted a demonstration video (switching LEDS) on YouTube.
You can activate an output with the following command:
System.CoffeeCooker( port, value )
Where port is 0..3 for the port number.
and value is 0 or 1 to switch it off or on.
Direct commands:
(http):http://xbox/xbmcCmds/xbmcHttp?command=Ex...ooker(3,1)
(ftp):site System.CoffeeCooker(3,1)
(python):xbmc.executebuiltin( 'System.CoffeeCooker(3,1)' )
Also in Python, you can use xbmc.getGPIOState(3) to read the current port state, which you can use to highlight a button.
The hardware is simple: it's similar to the PWMControl hardware pins, so if you connect LEDs, you must add a resistor.
The four switches available all switch to ground, which means you have to supply a positive voltage.
In the video I used +5v with 220 ohm resistors on each green LED connected to a rj45 (network) socket, so I can abuse plain network cables
Cheers,
Tinux