Documentation ¶
Index ¶
- Constants
- Variables
- func Wheel() func() RGB
- type Config
- type Frame
- type ILI9341
- func (lcd *ILI9341) Clip(p Point) Point
- func (lcd *ILI9341) DrawBitmap16BPP(frame Frame, bmp []uint16) error
- func (lcd *ILI9341) DrawBitmap1BPP(fg RGB, bg RGB, frame Frame, bmp []uint8) error
- func (lcd *ILI9341) DrawBitmapRect16BPP(x int, y int, w int, h int, bmp []uint16) error
- func (lcd *ILI9341) DrawBitmapRect1BPP(fg RGB, bg RGB, x int, y int, w int, h int, bmp []uint8) error
- func (lcd *ILI9341) DrawPixel(color RGB, x int, y int) error
- func (lcd *ILI9341) FillFrame(color RGB, frame Frame) error
- func (lcd *ILI9341) FillFrameRect(color RGB, x int, y int, w int, h int) error
- func (lcd *ILI9341) FillScreen(color RGB) error
- func (lcd *ILI9341) Init() error
- func (lcd *ILI9341) Normalize(f Frame) Frame
- func (lcd *ILI9341) Reset() error
- func (lcd *ILI9341) SendCommand(cmd uint8) error
- func (lcd *ILI9341) SendCommandData(cmd uint8, data []uint8) error
- func (lcd *ILI9341) SendData(data []uint8) error
- func (lcd *ILI9341) SetFrame(frame Frame) error
- func (lcd *ILI9341) SetFrameRect(x0 int, y0 int, x1 int, y1 int) error
- func (lcd *ILI9341) Size() Size
- func (lcd *ILI9341) WriteData(data []uint8, start bool, stop bool) error
- type Point
- type RGB
- type RGB16
- type Rotation
- type Size
Constants ¶
View Source
const (
NumPixels = numHorzPixels * numVertPixels
)
Variables ¶
View Source
var ( Black = RGB{R: 0x00, G: 0x00, B: 0x00} DarkGreen = RGB{R: 0x00, G: 0x1F, B: 0x00} DarkCyan = RGB{R: 0x00, G: 0x1F, B: 0x0F} Maroon = RGB{R: 0x0F, G: 0x00, B: 0x00} Purple = RGB{R: 0x0F, G: 0x00, B: 0x0F} Olive = RGB{R: 0x0F, G: 0x1F, B: 0x00} LightGrey = RGB{R: 0x18, G: 0x30, B: 0x18} DarkGrey = RGB{R: 0x0F, G: 0x1F, B: 0x0F} Blue = RGB{R: 0x00, G: 0x00, B: 0x1F} Green = RGB{R: 0x00, G: 0x3F, B: 0x00} Cyan = RGB{R: 0x00, G: 0x3F, B: 0x1F} Red = RGB{R: 0x1F, G: 0x00, B: 0x00} Magenta = RGB{R: 0x1F, G: 0x00, B: 0x1F} Yellow = RGB{R: 0x1F, G: 0x3F, B: 0x00} White = RGB{R: 0x1F, G: 0x3F, B: 0x1F} Orange = RGB{R: 0x1F, G: 0x29, B: 0x00} GreenYellow = RGB{R: 0x15, G: 0x3F, B: 0x05} Pink = RGB{R: 0x1F, G: 0x00, B: 0x1F} )
Functions ¶
Types ¶
type ILI9341 ¶
type ILI9341 struct {
// contains filtered or unexported fields
}
func (*ILI9341) DrawBitmap16BPP ¶
func (*ILI9341) DrawBitmap1BPP ¶
func (*ILI9341) DrawBitmapRect16BPP ¶
func (*ILI9341) DrawBitmapRect1BPP ¶
func (*ILI9341) FillFrameRect ¶
func (*ILI9341) FillScreen ¶
func (*ILI9341) SendCommand ¶
func (*ILI9341) SendCommandData ¶
func (*ILI9341) SetFrameRect ¶
Click to show internal directories.
Click to hide internal directories.