Documentation ¶
Overview ¶
Package monochromeoled contains an Adafruit Monochrome OLED (SSD1306) display driver.
Index ¶
- type OLED
- func (o *OLED) Clear() error
- func (o *OLED) Close() error
- func (o *OLED) DisableScroll() error
- func (o *OLED) Draw() error
- func (o *OLED) EnableScroll(startY, endY int) error
- func (o *OLED) Height() int
- func (o *OLED) Off() error
- func (o *OLED) On() error
- func (o *OLED) SetImage(x, y int, img image.Image) error
- func (o *OLED) SetPixel(x, y int, v byte) error
- func (o *OLED) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OLED ¶
type OLED struct {
// contains filtered or unexported fields
}
OLED represents an SSD1306 OLED display.
func Open ¶
Open opens an SSD1306 OLED display. Once not in use, it needs to be close by calling Close. The default width is 128, height is 64 if zero values are given.
func (*OLED) DisableScroll ¶
StopStrolls stops the scrolling on the display.
func (*OLED) Draw ¶
Draw draws the intermediate pixel buffer on the display. See SetPixel and SetImage to mutate the buffer.
func (*OLED) EnableScroll ¶
StartScroll starts scrolling in the horizontal direction starting from startY column to endY column.
Click to show internal directories.
Click to hide internal directories.