Documentation
¶
Index ¶
- Constants
- type SH1107
- func (d *SH1107) Blit(img image.Image)
- func (d *SH1107) Clear(state byte)
- func (d *SH1107) Close()
- func (d *SH1107) Off()
- func (d *SH1107) On()
- func (d *SH1107) PlayAnimation(dir string, frameCount int, fps int)
- func (d *SH1107) Render()
- func (d *SH1107) Set(x, y int, color byte)
- func (d *SH1107) SetBrightness(level float64)
- func (d *SH1107) SetRotation(rot uint8)
- func (d *SH1107) TestPattern()
Constants ¶
View Source
const ( Normal uint8 = 0 Flipped uint8 = 1 UpsideDown uint8 = 2 FlippedUpsideDown uint8 = 3 )
View Source
const Black byte = 0x00
View Source
const White byte = 0xFF
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SH1107 ¶
type SH1107 struct {
Width, Height int
// contains filtered or unexported fields
}
func (*SH1107) PlayAnimation ¶
Plays a sequence of images
func (*SH1107) SetBrightness ¶
Set brightness from 0.0 to 1.0
func (*SH1107) SetRotation ¶
TODO: THIS CURRENTLY DOESN'T PROPERLY WORK FOR 90/270 DEGREES
func (*SH1107) TestPattern ¶
func (d *SH1107) TestPattern()
Shows a checkerboard pattern on the display
Click to show internal directories.
Click to hide internal directories.