Documentation ¶
Overview ¶
Thin wrapper for wio terminal.
Instead of having custom made machine package etc... have some interfaces For some reason machine package is in included in devices. Very non testable situation
Interfaces also allow more high level abstraction instead of playng with device registers ¶
Actual implementation on hardware is simpler than what comes from ili9341 ¶
Index ¶
- Constants
- func RGBATo565(c color.RGBA) uint16
- type Rotation
- type Sdlwio
- func (p *Sdlwio) Backlight(on bool) error
- func (p *Sdlwio) Close() error
- func (p *Sdlwio) EndWrite() error
- func (p *Sdlwio) GetWioKeys() uint32
- func (p *Sdlwio) Init(rotation Rotation) error
- func (p *Sdlwio) SetRotation(rotation Rotation) error
- func (p *Sdlwio) SetScroll(line int16)
- func (p *Sdlwio) SetScrollArea(topFixedArea int16, bottomFixedArea int16) error
- func (p *Sdlwio) SetWindow(x int16, y int16, w int16, h int16) error
- func (p *Sdlwio) Sleep(sleeping bool) error
- func (p *Sdlwio) StartWrite() error
- func (p *Sdlwio) Write16bit(arr []uint16) error
- func (p *Sdlwio) Write16bitbytes(arr []byte) error
- func (p *Sdlwio) Write8bit(arr []byte) error
- type SdlwioBackgroundFrame
- type WioInterface
Constants ¶
View Source
const ( WIODISPLAY_W = 320 WIODISPLAY_H = 240 TITLEDISPLAY = "wio simulator" )
View Source
const ( BACKGROUNDPNG_VIEW_X0 = 85 BACKGROUNDPNG_VIEW_Y0 = 111 BACKGROUNDPNG_VIEW_X1 = 917 BACKGROUNDPNG_VIEW_Y1 = 660 )
View Source
const ( Rotation0 = iota Rotation90 Rotation180 Rotation270 Rotation0Mirror Rotation90Mirror Rotation180Mirror Rotation270Mirror )
Clockwise rotation of the screen.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sdlwio ¶
func InitSdlwio ¶
func (*Sdlwio) GetWioKeys ¶
func (*Sdlwio) SetRotation ¶
func (*Sdlwio) SetScrollArea ¶
func (*Sdlwio) StartWrite ¶
func (*Sdlwio) Write16bit ¶
func (*Sdlwio) Write16bitbytes ¶
type SdlwioBackgroundFrame ¶
type SdlwioBackgroundFrame struct {
// contains filtered or unexported fields
}
type WioInterface ¶
type WioInterface interface { Backlight(on bool) error //Display SPI Init(rotation Rotation) error SetWindow(x int16, y int16, w int16, h int16) error StartWrite() error EndWrite() error Write8bit(arr []byte) error Write16bitbytes(arr []byte) error Write16bit(arr []uint16) error Sleep(sleeping bool) error SetRotation(rotation Rotation) error SetScrollArea(topFixedArea int16, bottomFixedArea int16) error SetScroll(line int16) // Keys GetWioKeys() uint32 }
Click to show internal directories.
Click to hide internal directories.