.vscode | ||
build | ||
CMakeLists.txt | ||
dht11.c | ||
display.c | ||
display.h | ||
pico_sdk_import.cmake | ||
README.md | ||
stub_display.c |
here is my sweating to get dht11 to work on a rpi pico
it reads something but not sure if correct
if you were to do this you must know things I learned the hard way:
- don't print values live it will mess up with timing and it won't work at all
- initialize the pin as output then when it's time to read make it input, pull up and down doesn't work like output
you can also connect a 7 segment display and it will display the first digit of humidity value (percentage or something), because I only have one 7 segment display
that's pointless you might say... well the display has a decimal point
then you will say that has no purpose... but you will proceed to try it out and you will notice the cool animations and patterns and you will change your mind (there animation refers to fade between patterns and the patterns are digits, a dot before first read and a minus on error)
you can disable the display module for placebo more performance and 1kb lighter binary:
- rename
stub_display.c
todisplay.c
- recompile and done
- if you're feeling adventurous delete relevant lines in the program