You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is occurring on a Raspberry PI ZERO. Other versions I've used 2 and 3 are working fine.
UPDATE: The library does work by defaulting the bus to 1. NOT recommended... It does get me by for now.
def _get_bus_number(self):
pi_type = GPIO.RPI_INFO['TYPE']
print ('----------pi_type----------')
print (pi_type)
print ('---------------------------')
if pi_type in self._BUS_0_TYPES:
bus_number = 0
elif pi_type in self._BUS_1_TYPES:
bus_number = 1
else:
bus_number = 1
#raise ValueError('Reading Pi type error, Your Pi "{0}"" is not in the list.\n Please post an Issus at our Github Page or contract us\n Github page: https://github.com/sunfounder/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/issues\n Email: [email protected]\n SunFounder'.format(pi_type))
The text was updated successfully, but these errors were encountered:
Please note the else statement and the commented out line. This is the error I see. Now see the print statements. The "pi_type" variable displays "unknown", this was causing the raise statement to execute. Hope this helps...
This is occurring on a Raspberry PI ZERO. Other versions I've used 2 and 3 are working fine.
UPDATE: The library does work by defaulting the bus to 1. NOT recommended... It does get me by for now.
The text was updated successfully, but these errors were encountered: