I found an oled display to add to my project which I'm connecting w/ i2c. I found a python library from adafruit..
https://github.com/adafruit/Adafruit_Python_SSD1306
I can run the examples from ~/Adafruit_Python_SSD1306/examples and it works.
Now, I'd like to write to the display from my original ~/scripts/pins.py script..
- I tried to copy the ONLY the "Adafruit_SSD1306" folder into my ~/scripts folder.
- I get the error that Adafruit GPIO is set to a differnet mode (I use Board mode)
- I found the following lines..
Code: Select all
# Default to platform GPIO if not provided.
self._gpio = gpio
if self._gpio is None:
self._gpio = GPIO.get_platform_gpio()- I see this "import Adafruit_GPIO as GPIO" but cannot find the script anywhere to adjust/make changes. Is it downloading it online somewhere?
If I comment out the lines above the display works with my script. Does this mean w/ i2c that it's not really using the GPIO?