kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
Revert "ssd1351 drivers: remove unused import statement."
rodzic
ad3a8fb074
commit
791c5e5895
|
@ -14,6 +14,7 @@ import framebuf
|
|||
import utime
|
||||
import gc
|
||||
import micropython
|
||||
from uctypes import addressof
|
||||
from drivers.boolpalette import BoolPalette
|
||||
|
||||
# https://github.com/peterhinch/micropython-nano-gui/issues/2
|
||||
|
|
|
@ -15,6 +15,7 @@ import framebuf
|
|||
import utime
|
||||
import gc
|
||||
import micropython
|
||||
from uctypes import addressof
|
||||
from drivers.boolpalette import BoolPalette
|
||||
|
||||
# https://github.com/peterhinch/micropython-nano-gui/issues/2
|
||||
|
|
|
@ -16,6 +16,7 @@ import framebuf
|
|||
import utime
|
||||
import gc
|
||||
import micropython
|
||||
from uctypes import addressof
|
||||
from drivers.boolpalette import BoolPalette
|
||||
|
||||
import sys
|
||||
|
|
|
@ -25,11 +25,11 @@
|
|||
from machine import SPI, Pin
|
||||
import gc
|
||||
#from drivers.ssd1351.ssd1351_generic import SSD1351 as SSD
|
||||
from drivers.st7735r.st7735r import ST7735R as SSD
|
||||
#from drivers.st7735r.st7735r import ST7735R as SSD
|
||||
#from drivers.st7735r.st7735r144 import ST7735R as SSD
|
||||
#from drivers.st7735r.st7735r_4bit import ST7735R as SSD
|
||||
from drivers.st7735r.st7735r_4bit import ST7735R as SSD
|
||||
|
||||
height = 128 # Ensure height is correct
|
||||
height = 96 # SSD1351: ensure height is correct (96/128)
|
||||
|
||||
pdc = Pin(27, Pin.OUT, value=0) # Arbitrary pins
|
||||
pcs = Pin(25, Pin.OUT, value=1)
|
||||
|
|
Ładowanie…
Reference in New Issue