You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • i don't know if its best to put that into the library as code or ...

    Interesting about the LUTs - yes, best keep them out of the library if we're targeting multiple devices. Maybe we could have separate library files with them in? For example:

    var screen = require("SSD16xx").connect(
        display: {
          bpp : 1,
          displaySizeX      : 200,
          displaySizeY      : 200,
          lutRegisterData   : require("SSD1681_lut")
          coloredDisplay    : 0,

    One other thing to add - if you've got a big Uint8Array you can use E.toUint8Array(atob("....")) with a base64 encoded blob - it'll be quicker to decode than numbers and should take less space :)


Avatar for Gordon @Gordon started