Mercurial > code > home > repos > homeauto
diff service/tinyScreen/tiny_screen.py @ 459:a471688fb7b7
build updates. turn off output speed override for now
Ignore-this: 81c155e3c11cbad6ec28d22df255d6d5
author | drewp@bigasterisk.com |
---|---|
date | Sat, 20 Apr 2019 23:31:16 -0700 |
parents | 5fc79536885a |
children | a93fbf0d0daa |
line wrap: on
line diff
--- a/service/tinyScreen/tiny_screen.py Sat Apr 20 23:30:31 2019 -0700 +++ b/service/tinyScreen/tiny_screen.py Sat Apr 20 23:31:16 2019 -0700 @@ -25,11 +25,14 @@ return Image.open('anim/%s.png' % state.rsplit('/')[-1]) def _initOutput(self, spiDevice, rotation): + # CS on pin 26 (GPIO7; spi0 ce1), DC on pin 18 (GPIO24), RST held at VCC. self._dev = ssd1331(spi(device=spiDevice, port=0, # lots of timeouts on the 12288-byte transfer without this - transfer_size=64, - bus_speed_hz=16000000, - gpio_RST=None), + #transfer_size=64, + #bus_speed_hz=16000000, + gpio_RST=None, + gpio_DC=24, + ), rotation=rotation) def setContrast(self, contrast):