From c331b2498cc6b3ad121b747277f70f9f23dd95ae Mon Sep 17 00:00:00 2001 From: George Sexton Date: Fri, 28 Mar 2025 14:08:09 -0600 Subject: [PATCH] Add doc --- ssd1306/doc.go | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/ssd1306/doc.go b/ssd1306/doc.go index 968a621..0064a96 100644 --- a/ssd1306/doc.go +++ b/ssd1306/doc.go @@ -2,17 +2,18 @@ // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. -// Package ssd1306 controls a 128x64 monochrome OLED display via a SSD1306 -// controller. +// Package ssd1306 controls a monochrome OLED display via a SSD1306, SH1106, +// or SH1107 controller. The driver automatically detects the variant and +// adjusts accordingly. // // The driver does differential updates: it only sends modified pixels for the // smallest rectangle, to economize bus bandwidth. This is especially important // when using I²C as the bus default speed (often 100kHz) is slow enough to // saturate the bus at less than 10 frames per second. // -// The SSD1306 is a write-only device. It can be driven on either I²C or SPI -// with 4 wires. Changing between protocol is likely done through resistor -// soldering, for boards that support both. +// The device can be driven on either I²C or SPI with 4 wires. Changing +// between protocol is likely done through resistor soldering, for boards that +// support both. // // Some boards expose a RES / Reset pin. If present, it must be normally be // High. When set to Low (Ground), it enables the reset circuitry. It can be @@ -25,11 +26,22 @@ // # Datasheets // // Product page: +// +// SSD1306 +// // http://www.solomon-systech.com/en/product/display-ic/oled-driver-controller/ssd1306/ // // https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf // // "DM-OLED096-624": https://drive.google.com/file/d/0B5lkVYnewKTGaEVENlYwbDkxSGM/view // -// "ssd1306": https://drive.google.com/file/d/0B5lkVYnewKTGYzhyWWp0clBMR1E/view +// SH1106 +// +// https://cdn.velleman.eu/downloads/29/infosheets/sh1106_datasheet.pdf +// +// SH1107 +// +// https://www.adafruit.com/product/5297 +// +// https://www.displayfuture.com/Display/datasheet/controller/SH1107.pdf package ssd1306