Documentation ¶
Index ¶
- Constants
- func WriteBuf(buf *bytes.Buffer, vars ...interface{}) error
- type Device
- func (d *Device) Begin(reset bool)
- func (d *Device) BusyWait()
- func (d *Device) Clear()
- func (d *Device) Display() error
- func (d *Device) DisplayImage(imageWidth, imageHeight int, image [][]byte)
- func (d *Device) Fill(color int)
- func (d *Device) FillRect(x, y, width, height int, color int)
- func (d *Device) HardwareReset()
- func (d *Device) Initialize()
- func (d *Device) Pixel(x, y int, color int)
- func (d *Device) PowerDown()
- func (d *Device) PowerUp() error
- func (d *Device) SPITransfer(databyte byte) byte
- func (d *Device) SetBlackBuffer(index int, inverted bool)
- func (d *Device) SetColorBuffer(index int, inverted bool)
- func (d *Device) SetPixel(x, y int16, c color.RGBA)
- func (d *Device) SetRotation(val int)
- func (d *Device) Size() (int16, int16)
- func (d *Device) Update()
- func (d *Device) WriteRam(index int) byte
Constants ¶
View Source
const ( BLACK int = iota WHITE INVERSE RED DARK LIGHT )
View Source
const ( IL0373_PANEL_SETTING = 0x00 IL0373_POWER_SETTING = 0x01 IL0373_POWER_OFF = 0x02 IL0373_POWER_OFF_SEQUENCE = 0x03 IL0373_POWER_ON = 0x04 IL0373_POWER_ON_MEASURE = 0x05 IL0373_BOOSTER_SOFT_START = 0x06 IL0373_DEEP_SLEEP = 0x07 IL0373_DTM1 = 0x10 IL0373_DATA_STOP = 0x11 IL0373_DISPLAY_REFRESH = 0x12 IL0373_DTM2 = 0x13 IL0373_PDTM1 = 0x14 IL0373_PDTM2 = 0x15 IL0373_PDRF = 0x16 IL0373_LUT1 = 0x20 IL0373_LUTWW = 0x21 IL0373_LUTBW = 0x22 IL0373_LUTWB = 0x23 IL0373_LUTBB = 0x24 IL0373_PLL = 0x30 IL0373_CDI = 0x50 IL0373_RESOLUTION = 0x61 IL0373_VCM_DC_SETTING = 0x82 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device struct { SPI drivers.SPI CS_PIN machine.Pin DC_PIN machine.Pin SRAM_CS_PIN machine.Pin RST_PIN machine.Pin BUSY_PIN machine.Pin Width int Height int Rotation int // contains filtered or unexported fields }
func (*Device) DisplayImage ¶
func (*Device) HardwareReset ¶
func (d *Device) HardwareReset()
func (*Device) Initialize ¶
func (d *Device) Initialize()
func (*Device) SPITransfer ¶
func (*Device) SetBlackBuffer ¶
func (*Device) SetColorBuffer ¶
func (*Device) SetRotation ¶
Click to show internal directories.
Click to hide internal directories.