Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5107

Python • Re: Raspberry pi 5 with DHT11

$
0
0
I assume that you have the one without I2C!

Well this Adafruit demonstration should work!.
https://learn.adafruit.com/drive-a-16x2 ... ython-code

Just one word. before.
With the new python3.11 you should run your code in virtual environment!

Just create a folder for you project and set "venv" , Activate the "venv" and pip install what you need.

ex:

Code:

 cd mkdir lcd_project cd lcd_project python -m venv lcd_venv source lcd_venv/bin/activate pip3 install gpiod pip3 install adafruit-blinka pip3 install adafruit-circuitpython-charlcd 
Then upload the demo python project and run the script. Don't forget to set all the wires.

Statistics: Posted by danjperron — Sun Feb 25, 2024 3:02 am



Viewing all articles
Browse latest Browse all 5107

Trending Articles