Documentation
¶
Index ¶
Examples ¶
Constants ¶
View Source
const DISPLAY_PATH = "/BE/display"
View Source
const EPD_COMMAND_PATH = "/command"
View Source
const EPD_DEFAULT_HEIGHT = 96
View Source
const EPD_DEFAULT_PATH = "/dev/epd"
View Source
const EPD_DEFAULT_WIDTH = 200
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpdCommand ¶
type EpdCommand byte
const ( // EPD Command to trigger a display update COMMAND_UPDATE EpdCommand = 'U' // EPD Command to clear display COMMAND_CLEAR EpdCommand = 'C' // EPD Command to trigger a partial display update COMMAND_PARTIAL EpdCommand = 'P' )
type EpdFuse ¶
Configures EPD Fuse
func NewCustomEpdFuse ¶
Create a new EpdFuse to interact with your display
Example ¶
NewCustomEpdFuse("/dev/epd", 200, 96)
func (*EpdFuse) WriteImage ¶
Write image to your PaPiRus display
Example ¶
f, err := os.Open("example_image.png")
if err != nil {
panic(err)
}
defer f.Close()
img, err := png.Decode(f)
fuse := NewEpdFuse()
fuse.WriteImage(img)
func (*EpdFuse) WriteImagePartial ¶
Write partial image to your PaPiRus display
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
papirus-clear
command
|
|
|
papirus-image
command
|
|
|
papirus-text
command
|
Click to show internal directories.
Click to hide internal directories.
