You are reading a single comment by @JumJum and its replies. Click here to read the full conversation.
  • For the ILI99341 driver, I would like to send an Uint16Array via spi.send
    I tried 3 versions yet

        1. for(i = 0; i < sData.length; i++){
          spi.send(String.fromCharCode(sData[i]>>8­)+String.fromCharCode(sData[i]));
        }
       2. spi.send(sData.buffer);
       3. spi.send(sData);
    
    

    1st version is slowest, but works fine
    2nd shows wrong colors and other minor problems
    3rd is totally wrong
    I did not test another option given with Graphics.drawImage. In my (poor) understanding, this is based on setPixel, which would be very slow.
    For now I live with 1st solution, any other idea ?

About

Avatar for JumJum @JumJum started