Erik R
New Member
Posts: 6
Raspberry Pi: Yes
|
Post by Erik R on Dec 31, 2019 14:13:44 GMT -8
While testing my SGS setup, python reports "Could not determine default I2C bus for platform" and aborts line 156 in SDL_Pi_SI1145.py. However I2CDETECT finds the board and devices just fine. Raspberry Pi Zero W (with GPIO header) Raspbian 10 (Buster). Python version 2.7.16 Uncle Google suggested reinstalling Adafruit_Python_GPIO (which I have done a couple times). Any ideas? Thx! Attachments:

|
|
|
Post by SDL on Dec 31, 2019 17:29:59 GMT -8
Did you use one of our SDCards? Or did you roll your own? Ours works, but that might not be too much help to you!
Since the SI1145 driver is bombing in the I2C.py program, you might try this since something is hosed:
at line 55 in ~/SDL_Pi_SmartGardenSystem/SDL_Pi_SI1145/I2C.py
# fix for Erik R return 1 #end if Fix for Erik R
I really don't like the SI1145!
Let us know if that works.
~/SDL_Pi_SmartGardenSystem/SDL_Pi_SI1145
BP
|
|
Erik R
New Member
Posts: 6
Raspberry Pi: Yes
|
Post by Erik R on Dec 31, 2019 18:27:51 GMT -8
BP, That was easy! Worked like a charm. Test program ran, all sensors present... code edit made absolute sense. Eagerly waiting the Python 3.x SGS code. Appreciate the quick resolution.
|
|
|
Post by SDL on Jan 1, 2020 12:43:16 GMT -8
Erik,
Thank you! nice to get positive feedback! That way I can show it my Boss!
BP
|
|