|
Post by rogers1313 on Apr 19, 2018 15:01:00 GMT -8
I have asked a broad question in another thread. I am attempting to whittle down my issues one by one. So I will try to focus on one thing in this thread. I am trying to test the OLED SSD1306 display that came with my GroveWeatherPi system. It presently does work with my project. This is what I have. I am using the PI2Grove board on a Raspberry Pi 3B. I have the display connected with a Grove connector to the I2C port on the board. I am attempting to run the SDL_image.py program below and get the following error. Can you help me with this. So I can see if I have a bad display.
pi@weatherpi:~/SDL_Pi_GroveWeatherPi/SDL_Pi_SSD1306 $ sudo python SDL_image.py Traceback (most recent call last): File "SDL_image.py", line 56, in <module> disp = Adafruit_SSD1306.SSD1306_128_64(rst=RST, i2c_address=0x3C) File "build/bdist.linux-armv7l/egg/Adafruit_SSD1306/SSD1306.py", line 240, in __init__ File "build/bdist.linux-armv7l/egg/Adafruit_SSD1306/SSD1306.py", line 85, in __init__ File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/GPIO.py", line 321, in get_platform_gpio ImportError: No module named Adafruit_BBIO.GPIO
|
|
|
Post by SDL on Apr 19, 2018 18:22:48 GMT -8
Run i2cdetect -y 1 and post the results.
I think you are missing the module Adafruit_BBIO.GPIO and not that the board is bad.
BP
|
|
|
Post by rogers1313 on Apr 19, 2018 20:36:54 GMT -8
i ran this command with the OLED connected to the PI2Grove and no other I2C connection.
pi@weatherpi:~/SDL_Pi_SSD1306-master $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
I also tried to run the sudo python SDL_image.py program same results as in previous posting.
|
|
|
Post by SDL on Apr 23, 2018 13:04:36 GMT -8
I think you are missing the module Adafruit_BBIO.GPIO
BP
|
|
|
Post by rogers1313 on Jan 9, 2019 15:49:36 GMT -8
![]() It's been a long time coming, but I did a fresh install on my raspberry pi 3 and the Grove weather project and finally got this display to work. This is all I did differently (I think)... I installed the latest NOOBS 3.0.0. I had NOOBS 2.7.0 and 2.99 SwitchDoc software when it did not work. I installed the latest SwitchDoc software. Then I went through the same install procedure for the database and all the other suggested installs. I have these all written down in order so I can reproduce this again. Ran the I2c bus test routine all looked good. Started up program. Everything appears to be working. Attachments:
|
|
|
Post by SDL on Jan 10, 2019 9:49:52 GMT -8
Woohoo! Glad to hear that. The Raspberry Pi installs are easy to screw up and then how to recover is not very obvious.
BP
|
|