Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install ds18b20 Thermometer on NPiNeo running Armbian 5.69
sudo apt-get install python-pip -y
pip install w1thermsensor
rm /boot/armbianEnv.txt
printf "verbosity=1\nlogo=disabled\nconsole=serial\ndisp_mode=1920x1080p60\noverlay_prefix=sun8i-h3\noverlays=armbian-add-overlay usbhost1 usbhost2 w1-gpio\nparam_w1_pin=PG11\nrootdev=UUID=41c3101b-b077-456b-b9cd-a7717422b4b3\nrootfstype=ext4\nusbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u\n" >> /boot/armbianEnv.txt
dtc -I dtb -O dts -f /boot/dtb/overlay/sun8i-h3-w1-gpio.dtbo -o /boot/dtb/overlay/sun8i-h3-w1-gpio.dts # convert dtbo to dts so you can nano/edit it
sed -i 's/PD14/PG11/g' /boot/dtb/overlay/sun8i-h3-w1-gpio.dts
dtc -I dts -O dtb -f /boot/dtb/overlay/sun8i-h3-w1-gpio.dts -o /boot/dtb/overlay/sun8i-h3-w1-gpio.dtbo
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.