SmartXX V3 RGB Ambient Light Controller script
#1
This script allows you to control your SmartXX V3 RGB Ambient Light controller.

Quote:
B-Button - *toggles demo on/off.
X-Button - toggles pointer.
A-Button - toggles XBMC.system.pwmcontrol() command on/off. A 'no' sign appears when off.
Y-Button - toggles pointer step mode on/off. (the pointers move in slow motion) Steps appear when on.
L-Thumbstick - Controls the pointers.
DPad Up - Increases time
DPad Down - Decreases time
Dpad Left - Changes Mode
Dpad Right - Changes Mode
*The demo requires a setColorDiffuse() method patch to work.
Credits:
- This script was imagined by Pike from Team Xbox Media Center and made possible,
- by the creative minds of Team Xbox Media Center and Team SmartXX.

Get it in SVN: http://xbmc-scripting.googlecode.com/svn...trol%20Pad
Reply
#2
hi,

i´ve never heard of the rgb ambient light feature before. is it similar to the ambilight philips or just for a custom xbox logo led mod?

thanks in advance
asciii
Reply
#3
the philips ambilight.
Reply
#4
could you post some action pics please? Smile
Reply
#5
Here's a video, GeminSer, the developer who implemented the controls in XBMC linked me to. I don't own a SmartXX chip

http://www.youtube.com/watch?v=aJi3aZqh0SA&eurl=
Reply
#6
in the script stand:
Quote:This script allows you to control your SmartXX V3 RGB Ambient Light controller

hmm... work this with the smartxx alone or with a smartxx and a ambient light controller for the smartxxHuh

i know it must a simple circuit to use more then one led.
Reply
#7
First of all, sorry for my english...

Since weeks I'm planning a solution with the xbox to have a real ambilight.

A "real" ambilight means: If the image on the screen changes, the color off the leds will change too. There are a lot of solutions for this on the net. (MoMolight for Windows, Atmolight for the Linux VDR). So why not having such a system for the xbox.

A lot of problems to solve:

How to access the current screen information?
How to sent data to a microcontroller (I'm a experienced MC developer, if the signal is on a wire to the outside, I will find a solution to drive the leds :-)

A small solution with the pwmcontrol (only 1 Channel Ambilight)? I'm dreaming of 2 or 4 channels.

But there are a lot of questions. Due to the distributed documentation (?messy? Documentation) I'm really frustrated. This will be maybe the last try to get more help for my questions? I'm try to find information for more than 3 weeks. I've collected a lot of information (for german users see on: http://www.laberrababer.de/dokuwiki/doku...light:blog)

I'm looking for an esay solution (without going to the dark side working with a stolen developmentkit)

My first idea was creating a special filter for the mplayer, which sends data to the I/O port of the smartxx. But this works not in all situations. So I must have access to the current visible image.

Second idea: Write a threaded python script which gets the image information e.g 3 times per second. Stripe out the color (please don't discuss about the algorythm) and send the some bytes via the I2C or Port or USB (a bad idea on the xbox) to a microcontroller which controls the led. Morphing from one color to the next, can be done on the controller.

But:
- Is theres a way to the the current visible image information from the renderer in python? (I found nothing)
- Lets think about a pyd. Can we do this without the xsdk? Accessing a xbmc function? The takeScreenshot does something similar.
- When not using the pwm, how to use the port. In led.c and util.c (e.g. outb() a small assembler routine) I've found enough information to access the ports of the smartxx. There is a datasheet from smartxx, which describes all the registers.

But how glue this together? I'm not shure, that a solution in python is possible. For the "getImage()" I've found no solution.

Simple solution, but driving this on the limited resources of the Xbox via Python seems a little bit Harakiry (Japaneese Suicide).

So maybe some of the old mans are interested to help me. I discussed the idea with a lot of people, but they are all interested, but no one have the skills to answer my question nor to give me some hints where to find documentations.

Consumtion:
- threading seems to work in xbox python?
- pyd / dll are possible to use in xbox python?
- pyd can access xbmc libs?
- Is there a way to get access to the current renderer from python

I hope I will find some people to figure out a solution. The hardware development (Interface, Drivers and the Leds) are a much more easier part. Porting some parts of the Atmolight are much more easy than developing part for the black box....

Peter
Reply
#8
i am trying to "use" this new build-in feature.
the rgb on the chips works fine with the sample.xbe and with dvd2xbox.
but i can't get it to work in xbmc.
i've tried to use the <onklick> command and i have tried the ambient-light script.
but the led just doesn't respond.
it switched "on" only one time, when i was playing with the script.
all 3 leds went "on" so i got white light.

is there anything i have to do befor i can use this rgb thing?
Reply
#9
i have looked for this problem in other boards:
modcontrol and smartxx forum.
all i could find out was, that there should be something like the "change the colour of the eject-led"-feature in actual builds.
but i can't find anything in "setttings -> system -> front led".
i have tested to change the front-led but this doesn't affect the rgb-led in any way.
Reply
#10
yesterday i have edited my keymap.xml

global
<seven>XBMC.system.pwmcontrol(#FF0000,#FFC0CB,fadeloop,100)</seven>

but nothing happens.
the log says, that the command is unknown.
do i have to use an other command?
Reply
#11
after updating "just everything", i got it work.
well, it doesn't work the way i was thinking about...

the rgb turns red after pressing "7".
o.k. that is just a bit better than "it doesn't work".

i mentioned this in the modcontrol.de forum.
there are those guys with the "first full rgb mod".
and they say, that it just isn't working correctly in the xbmc.
arg.
Reply
#12
bets way to do it is to re-program it in and set it up in a seperate function by editing the source :-)
Reply

Logout Mark Read Team Forum Stats Members Help
SmartXX V3 RGB Ambient Light Controller script0