Documentation ¶
Index ¶
- func Bolt(display ssd1306.Device, x int16, y int16, c color.RGBA)
- func Circle(display ssd1306.Device, x0 int16, y0 int16, r int16, c color.RGBA)
- func Clear(display ssd1306.Device)
- func DottedRect(display ssd1306.Device, x1 int16, x2 int16, y1 int16, y2 int16, c color.RGBA)
- func DrawChar(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, char rune, ...)
- func DrawCharRotated(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, char rune, ...)
- func FilledBolt(display ssd1306.Device, x int16, y int16, c color.RGBA)
- func FilledCircle(display ssd1306.Device, x0 int16, y0 int16, r int16, c color.RGBA)
- func FilledRect(display ssd1306.Device, x1 int16, x2 int16, y1 int16, y2 int16, c color.RGBA)
- func GetGlyph(font *tinyfont.Font, r rune) tinyfont.Glyph
- func Heading(display ssd1306.Device, x int16, y int16, text string)
- func HeadingRotate(display ssd1306.Device, x int16, y int16, text string, rotation Rotation)
- func Init() ssd1306.Device
- func Line(display ssd1306.Device, start_x int32, end_x int32, start_y int32, end_y int32, ...)
- func LineWidth(font *tinyfont.Font, str string) (innerWidth uint32, outboxWidth uint32)
- func Rect(display ssd1306.Device, x1 int16, x2 int16, y1 int16, y2 int16, c color.RGBA)
- func Text(display ssd1306.Device, x int16, y int16, text string)
- func TextRotate(display ssd1306.Device, x int16, y int16, text string, rotation Rotation)
- func WriteLine(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, ...)
- func WriteLineColors(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, ...)
- func WriteLineColorsRotated(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, ...)
- func WriteLineRotated(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, ...)
- type Font
- type Rotation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DottedRect ¶
func DrawChar ¶
func DrawChar(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, char rune, color color.RGBA)
DrawChar sets a single rune in the buffer of the display.
func DrawCharRotated ¶
func DrawCharRotated(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, char rune, color color.RGBA, rotation Rotation)
DrawCharRotated sets a single rune in the buffer of the display.
func FilledCircle ¶
func FilledRect ¶
func HeadingRotate ¶
func TextRotate ¶
func WriteLine ¶
func WriteLine(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, c color.RGBA)
WriteLine writes a string in the selected font in the buffer.
func WriteLineColors ¶
func WriteLineColors(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, colors []color.RGBA)
WriteLineColors writes a string in the selected font in the buffer. Each char is in a different color if not enough colors are defined, colors are cycled.
func WriteLineColorsRotated ¶
func WriteLineColorsRotated(display ssd1306.Device, font *tinyfont.Font, x int16, y int16, str string, colors []color.RGBA, rotation Rotation)
WriteLineColorsRotated writes a string in the selected font in the buffer. Each char is in a different color if not enough colors are defined, colors are cycled.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.