diff service/tinyScreen/tiny_screen.py @ 1262:a2e3a342315c

build updates. turn off output speed override for now Ignore-this: 81c155e3c11cbad6ec28d22df255d6d5 darcs-hash:061b99e423450ef596bc3e3826c983f973f9f00d
author drewp <drewp@bigasterisk.com>
date Sat, 20 Apr 2019 23:31:16 -0700
parents 971462233d15
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):