The first one is already there, but just uses different values, and for the second one you'll need to change the code in g.flip as well (although come to think of it, g.flip may not need that code at all).
There's also this code - it looks like the Adafruit lib supports a few different types of screen by sending different initialisation code. It wouldn't surprise me if their 'default' setup doesn't work for you either.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wow, that's pretty close! Looks like the width is right, but the start address and 'view window' is off.
I'd look at copying these two:
The first one is already there, but just uses different values, and for the second one you'll need to change the code in
g.flip
as well (although come to think of it,g.flip
may not need that code at all).There's also this code - it looks like the Adafruit lib supports a few different types of screen by sending different initialisation code. It wouldn't surprise me if their 'default' setup doesn't work for you either.