adafruit / Adafruit_ADS1X15

Driver for TI's ADS1015: 12-bit Differential or Single-Ended ADC with PGA and Comparator
Other
289 stars 301 forks source link

cannot import name 'ParamSpec' from 'typing_extensions' at 04-04-raspios-bullseye #81

Closed put346 closed 2 years ago

put346 commented 2 years ago

I use 4B with 2022-04-04-raspios-bullseye-armhf.img

this is my code git clone https://github.com/adafruit/Adafruit_Python_ADS1x15.git cd Adafruit_Python_ADS1x15 sudo python setup.py install

Then I get this problem ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (/usr/lib/python3/dist-packages/typing_extensions.py)

use the following code can solve which problem sudo pip3 install adafruit-circuitpython-ads1x15

cd examples/ sudo python simpletest.py

get new problem RuntimeError: Could not determine default I2C bus for platform.

i2cdetect -y 1 can get 48 address

Please , how can solve this new problem?

caternuson commented 2 years ago

This is an Arduino library, not a Python library.

For using the ADS1x15 ADCs with Python on a Pi, follow the guide here: https://learn.adafruit.com/adafruit-4-channel-adc-breakouts/python-circuitpython