You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Try spi.send([c>>8,c]); :)

    If a second argument is given to SPI.send, it's assumed to be a chip select pin. 0xf800 & 255 = 0 = A0 so it'll be turning A0 on and off when you're sending via SPI :)

    Note that you could use it to your advantage:

        for(var i = 0; i < img.height; i++){
          bmp = E.toArrayBuffer(file.read(img.width + img.width));
          for(var j = 0; j < 32; j++){spi.send([c>>8,c],ce);}
        }
    
About

Avatar for Gordon @Gordon started