Documentation
¶
Index ¶
- func NewDevice(id string) (devices.Device[any], error)
- type Bit
- type OLED
- func (d *OLED) AnimatedGIF(fname string, done <-chan time.Time) error
- func (d *OLED) Clear()
- func (d *OLED) Clip(x0, y0, x1, y1 *int)
- func (o *OLED) Close() error
- func (d *OLED) Diagonal(x0, y0, x1, y1 int, value Bit)
- func (d *OLED) Draw() error
- func (d *OLED) DrawString(x, y int, str string)
- func (d *OLED) Get() (any, error)
- func (d *OLED) Line(x0, y0, len, width int, value Bit)
- func (o *OLED) Open() error
- func (d *OLED) Rectangle(x0, y0, x1, y1 int, value Bit)
- func (d *OLED) Scroll(o ssd1306.Orientation, rate ssd1306.FrameRate, startLine, endLine int) error
- func (d *OLED) Set(v any) error
- func (d *OLED) SetBit(x, y int, value Bit)
- func (d *OLED) StopScroll() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OLED ¶
type OLED struct {
Dev *ssd1306.Dev
Height int
Width int
Font *basicfont.Face
Background *image1bit.VerticalLSB
*devices.DeviceBase[OLED]
// contains filtered or unexported fields
}
func (*OLED) DrawString ¶
func (*OLED) StopScroll ¶
Click to show internal directories.
Click to hide internal directories.