pety3bi / boblight

Automatically exported from code.google.com/p/boblight
GNU General Public License v3.0
0 stars 0 forks source link

Problem with WinXP and Linux #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Best regards to all .

I have Boblight with Arduino Duemilanove (rev 2011) with Chip ATmega328 . And 
uses two drivers TCL5940 on 32 channels leds strip .
On Windows XP perfect with the sketch ;

***************************************************

#include "Tlc5940.h"

void setup()
{
  Tlc.init(0);
  Serial.begin(115200);
}

void loop()
{
  if(Serial.available() >= 31 && Serial.read() == 0xff)
  {
    for(int i=1; i<16; ++i)
    {
      Tlc.set(i, map(Serial.read(), 0, 255, 0, 4095));
    }
    for(int i=17; i<32; ++i)
    {
      Tlc.set(i, map(Serial.read(), 0, 255, 0, 4095));
    }
    Tlc.update();
  }  
}

**************************************************

After Check your arduino code and not work correct. 

My solution is implementation code prefix add 55 AA online for linux
in above example .

How to do prefix " prefix 55 AA " code previous sketch ?

Thanks you Bob .
Best Regards .

Original issue reported on code.google.com by calamare...@gmail.com on 27 Jun 2012 at 1:32

GoogleCodeExporter commented 9 years ago
Why not set the prefix in boblight.conf to FF instead?

Original comment by bob.loo...@gmail.com on 27 Jun 2012 at 9:33

GoogleCodeExporter commented 9 years ago
For linux use two bit reading USB port with prefix 55 and AA
WinXP only one prefix FF

Original comment by calamare...@gmail.com on 28 Jun 2012 at 5:26

GoogleCodeExporter commented 9 years ago
Do you want boblightd to use the FF prefix or you do want the arduino to accept 
the 55 AA prefix?

Original comment by bob.loo...@gmail.com on 2 Jul 2012 at 12:04