uc8151: update to support all functions needed by tinygl and board package Displayer interface

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2024-05-07 21:36:31 +02:00
committed by Ron Evans
parent bb0e6b8ba8
commit 50b6f18cc2
3 changed files with 66 additions and 19 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"image/color"
"machine"
"tinygo.org/x/drivers"
"tinygo.org/x/drivers/uc8151"
)
@@ -21,7 +22,7 @@ func main() {
display = uc8151.New(machine.SPI0, machine.EPD_CS_PIN, machine.EPD_DC_PIN, machine.EPD_RESET_PIN, machine.EPD_BUSY_PIN)
display.Configure(uc8151.Config{
Rotation: uc8151.ROTATION_270,
Rotation: drivers.Rotation270,
Speed: uc8151.MEDIUM,
Blocking: true,
})