• Thanks for the info. It will be useful for my investigation. This is how the sequence goes for RPi:

    [#include](http://forum.espruino.com/sea­rch/?q=%23include)
    [#include](http://forum.espruino.com/sea­rch/?q=%23include)
    [#include](http://forum.espruino.com/sea­rch/?q=%23include)
    [#include](http://forum.espruino.com/sea­rch/?q=%23include)
     
    [#define](http://forum.espruino.com/sear­ch/?q=%23define) RED_DATA 0
    [#define](http://forum.espruino.com/sear­ch/?q=%23define) BLUE_DATA 1
    [#define](http://forum.espruino.com/sear­ch/?q=%23define) GREEN_DATA 2
     
    int main(void)
    {
      static uint8_t data[4] = {0x0,0x0,0x0,0x0};
      wiringPiSetup();
      wiringPiSPISetup(0,500000);
      while(1)
         {
             static uint8_t heart[8] = {0x00, 0x66, 0xFF, 0xFF, 0xFF, 0x7E, 0x3C, 0x18};             
             int j;
             int x=2;
        for ( j=0;j<8;j++)
            {
     
    
              data[0] = ~heart[j];
              data[2] = 0xFF;
              data[1] = 0xFF;
              data[3] = 0x01 << j ;
              wiringPiSPIDataRW(0,data,sizeof(data));
              delay(x);
            };
        };
    }
    

    My plan is to hopefully port the above. Seems like data is four bytes, with first byte being the col (or row?) data. Not sure the second and the third staying 255, and the last one seems like the col (or row) marker?

    What would the SPI.write arguments be mapping to the above?

    Thanks again!

About

Avatar for user81779 @user81779 started