I wrote a library (actually 2 headers and a C file) for Adafruit's SSD1351 OLED breakout boards. I started with the Adafruit library and an OpenGL library I wrote for Windows and Linux computers. But, they were far too large to fit a PIC18F2550 MCU that I was using. Also, the Adafruit library was VERY messy and convoluted.
The SSD1351 does NOT use MCU memory. It has it's own video memory on-board.
If you're interested and it can help you develop you library, you're welcome to it.
Here are the functions in the library:
// SSD1351 Prototypes
void oledCmd(uint8_t cmd);
void oledDat(uint8_t dat);
void oledSetup(void);
bp_t ORGB(uint8_t r, uint8_t g, uint8_t b);
void oledClear(void);
void oledPixel(int x, int y, bp_t color);
void oledHorzLine(int x, int y, int w, bp_t color);
void oledVertLine(int x, int y, int h, bp_t color);
void oledRectFill(int x, int y, int w, int h, bp_t color);
void drawLine(int x0, int y0, int x1, int y1, bp_t color);
void drawRectangle(int x0, int y0, int w, int h, bp_t color);
void drawCircle(int xm, int ym, int r, bp_t color);
void drawEllipse(int xm, int ym, int a, int b, bp_t color);
void fillCircle(int xm, int ym, int r, bp_t color);
void fillEllipse(int xm, int ym, int a, int b, bp_t color);
void drawTxt(int x0, int y0, uint8_t size, bp_t color, char *str);