You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I think there might have been some misunderstanding about my last post... You probably need to send all of the row 0s, followed by all row 1s, etc. So more like:

        raw : function(val) {
          digitalWrite(cs,0);
          spi.send ([0x9,0]); // output raw data
          digitalWrite(cs,1);
    
          for (var row=0;row<val.length&7;row++) {
            digitalWrite(cs,0); 
            for (var i=row;i<val.length;i+=8)
              spi.send([row,val[i]]);
            spi.send([0x0C,1]); // no shutdown
            digitalWrite(cs,1);
          }
        },
    

    I wonder if that'll be better?

    By the way, when posting code, if you highlight it and click the 'code' button, it'll appear properly in the forum (i just changed yours).

About

Avatar for Gordon @Gordon started