Open gaborbit opened 5 years ago
@gaborhub Many thanks for your request. We'll have a look.
add line below to /boot/config.txt
On DietPi it must be /DietPi/config.txt
, the RAMdisk location, btw.
modprobe w1-gpio
I guess adding the overlay runtime-wise will automatically enable the modules, doesn't it? E.g. run command and check:
dtoverlay w1-gpio gpiopin=4
lsmod
Creating a feature request
Is your feature request related to a problem? Please describe:
I would like to use DS18B20 Temperature sensor. It would be great to have an option in config to enable 1-wire and configure multiple 1-Wire busses https://pinout.xyz/pinout/1_wire
Describe the solution you'd like:
add line below to /boot/config.txt, before rebooting your Pi: (default pin=4) dtoverlay=w1-gpio,gpiopin=4
sudo modprobe w1-gpio pullup=1 sudo modprobe w1-therm strong_pullup=1 ls /sys/bus/w1/devices/
Describe alternatives you've considered:
Additional context
Vote for this feature on FeatHub: https://feathub.com/MichaIng/DietPi/