Documentation ¶
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) Init() (err error)
- 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 ¶
DisableScroll 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 ¶
EnableScroll starts scrolling in the horizontal direction starting from startY column to endY column.
func (*OLED) SetImage ¶
SetImage draws an image on the display buffer starting from x, y. A call to Draw is required to display it on the OLED display.
Click to show internal directories.
Click to hide internal directories.