spelling: display
This commit is contained in:
parent
8a87bbeb90
commit
479f9cf79d
@ -173,7 +173,7 @@ to use:
|
|||||||
|
|
||||||
# attempt grayscale conversion, and then to single bit
|
# attempt grayscale conversion, and then to single bit
|
||||||
# better to do this before calling this if the image is to
|
# better to do this before calling this if the image is to
|
||||||
# be dispayed several times
|
# be displayed several times
|
||||||
if image.mode != "1":
|
if image.mode != "1":
|
||||||
image = ImageOps.grayscale(image).convert("1", dither=Image.FLOYDSTEINBERG)
|
image = ImageOps.grayscale(image).convert("1", dither=Image.FLOYDSTEINBERG)
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class ST7789(object):
|
|||||||
self._spi.writebytes([val])
|
self._spi.writebytes([val])
|
||||||
|
|
||||||
def Init(self):
|
def Init(self):
|
||||||
"""Initialize dispaly"""
|
"""Initialize display"""
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
self.command(0x36)
|
self.command(0x36)
|
||||||
|
@ -34,7 +34,7 @@ class SH1106(object):
|
|||||||
def Init(self):
|
def Init(self):
|
||||||
if (config.module_init() != 0):
|
if (config.module_init() != 0):
|
||||||
return -1
|
return -1
|
||||||
"""Initialize dispaly"""
|
"""Initialize display"""
|
||||||
self.reset()
|
self.reset()
|
||||||
self.command(0xAE);#--turn off oled panel
|
self.command(0xAE);#--turn off oled panel
|
||||||
self.command(0x02);#---set low column address
|
self.command(0x02);#---set low column address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user