src/spartan-edge-ioex.cpp
/*
 * cantrol RGBled color
 * index should be set 0 or 1 
 * red/green/blue should be in the range of 0 to 255
 */
cantrol RGBled color
index should be set 0 or 1
red/green/blue should be in the range of 0 to 255
cantrol RGBled color index should be set 0 or 1 red / green / blue should be in the range of 0 to 255
void spartan_edge_ioex::setRGBLed(
  unsigned index, unsigned char red, unsigned char green, unsigned char blue
) {
  regWrite(SK6805_CTRL, (0x0u + index * 3));
  regWrite(SK6805_DATA, blue);  				
  regWrite(SK6805_CTRL, (0x1u + index * 3));
  regWrite(SK6805_DATA, red);   				
  regWrite(SK6805_CTRL, (0x2u + index * 3));
  regWrite(SK6805_DATA, green); 
}
void spartan_edge_ioex :: setRGBLed ( unsigned index , unsigned char red , unsigned char green , unsigned char blue ) { regWrite ( SK6805_CTRL , ( 0x0u + index * 3 ) ) ; regWrite ( SK6805_DATA , blue ) ; regWrite ( SK6805_CTRL , ( 0x1u + index * 3 ) ) ; regWrite ( SK6805_DATA , red ) ; regWrite ( SK6805_CTRL , ( 0x2u + index * 3 ) ) ; regWrite ( SK6805_DATA , green ) ; }
cantrol RGBled color
 index should be set 0 or 1
 red/green/blue should be in the range of 0 to 255
cantrol RGBled color index should be set 0 or 1 red / green / blue should be in the range of 0 to 255
// blue
 // red
 // green
