Skip to content

MikeDev101/sh1107-i2c-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SH1107 (i2C) OLED driver in pure Go

Exactly what it does on the tin. Allows you to connect a SH1107 OLED display to your Raspberry Pi (or other computer with an i2C bus) and control it in Golang.

Why?

Because I had some "fun" with one of these. A 128x128 monochrome OLED display that's based on the SH1107 controller.

51+LNLog8lL SL1050

There weren't any native, easy-to-use Go libraries out there for this particular display. And despite my efforts, not even Python wanted to play with it.

How?

Thanks to the demo code provided by seeed studio and waveshare (plus a little ChatGPT and Copilot magic) I ported the necessary driver functions needed to run a SH1107 at a fast enough speed.

Ok, how do I use it?

Run go get github.com/mikedev101/sh1107-i2c-go and view example/main.go for usage.

About

Pure Go-based SH1107 (i2C) OLED display driver

Resources

License

Stars

Watchers

Forks

Languages