Skip to content

A quick and dirty driver for the SSH1106 SPI OLED modules for the Raspberry Pi Pico

License

Notifications You must be signed in to change notification settings

thehugh100/RPI_Pico_OLED_SH1106_SPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RPI_Pico_OLED_SH1106_SPI

A quick and dirty driver for the SH1106 SPI OLED modules for the Raspberry Pi Pico

Any fancy advanced graphics is beyond the scope of this repo, this is just the bare minimum i.e. a screenbuffer and a way to plot pixels.

Basic Usage:

#include "pico/stdlib.h"
#include "SSH1106_SPI_Lite.h"
...
//define and init the OLED object
SSH1106 oled;
oled.init();
...
// draw some nice pixels
oled.drawPixel(10, 10, 1);
oled.drawPixel(11, 11, 1);
oled.drawPixel(12, 12, 1);
...
// Send our screenbuffer to the OLED
oled.display();

sleep_ms(1000); //wait some time

oled.clear();
//draw some fancier pixels
oled.drawPixel(20, 20, 1);
oled.drawPixel(21, 21, 1);
oled.drawPixel(22, 22, 1);

oled.display();

About

A quick and dirty driver for the SSH1106 SPI OLED modules for the Raspberry Pi Pico

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages