[New Plugin] Atmolight Process Plugin **Update 25.05.2010 V1.9** (2 Viewers)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    this is the link of Atmoduino Custom protocol from Rick164
    http://forums.adafruit.com/viewtopic.php?f=25&t=27746

    this is the code inside Arduino for read serial packet.
    Code:
    void loop()
    {
    	if(readByte() == 0xFF)
    		{
    		if(readByte() == 0x00)
    			{
    			if(readByte() == 0x00)
    			{
    			int channels = readByte();
    			for(int channel=0; channel<channels; channel++)
    				{
    				leds[channel].r = readByte();
    				leds[channel].b = readByte();
    				leds[channel].g = readByte();
    				}
    			FastSPI_LED.show();
    			}
    		}
    	}
    }

    but i don't understand why, we have R B G and not R G B sort in leds[channel].
    Code:
    void loop()
    {
    	if(readByte() == 0xFF)
    		{
    		if(readByte() == 0x00)
    			{
    			if(readByte() == 0x00)
    			{
    			int channels = readByte();
    			for(int channel=0; channel<channels; channel++)
    				{
    				leds[channel].r = readByte();
    				leds[channel].g = readByte();
    				leds[channel].b = readByte();
    				}
    			FastSPI_LED.show();
    			}
    		}
    	}
    }
     

    demmax2004

    Portal Pro
    December 20, 2009
    57
    8
    Protocol for Atmoduino
    Baudrate: 38400 bps Parity: None Datenbits: 8 Stopbits: 1
    Byte Beschreibung
    0 0xFF: Startbyte
    1 0x00: Startkanal (low byte)
    2 0x00: Startkanal (high byte)
    3 0x0F: Anzahl Kanäle (15 = 5 * 3 (R, G, B))
    4-XX - RGB data
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    yes, same of Atmowin you can select the number of channel to assign to each LED channel ( 1 led = 1 channel )
    atmoduino use FAstSPi ( V1 for now, V2 don't working for me on Teensy 2 + WS2801 ) library for connect to a lot of Chipset LED.
    But we need add the number of led inside Atmoduino firmware for FastSpi library.
     
    Last edited:

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    BHi,
    since i installed MP 1.5 pre and used the new core.dll i get flashes from my leds every once in a while. So i watch a movie and then all the sudden all my leds go full white and then back to normal. This happens randomly, sometimes just a few minutes apart, sometimes 30 minutes apart or so. Somebody else has seen this issue?
     
    Last edited:

    kilik360

    MP Donator
  • Premium Supporter
  • September 3, 2010
    576
    235
    Home Country
    Canada Canada
    I update the new core.dll 2 days ago and I haven't see this kind of flashes.

    Arduino Uno R3 / Atmoduino

    Hope you'll find a way to nailed it down.
     

    Users who are viewing this thread

    Top Bottom