Enable W1 on Armbian

Use w1 device on Armbian

Enable W1 on Armbian

Edit /boot/armbianEnv.txt, add line DS18B20 need power pin if use internal pullup or else read inaccurate

overlays=cir spi-spidev uart1 uart2 usbhost0 w1-gpio w1-therm 
param_w1_pin=PG11 
param_w1_pin_int_pullup=1

Check GPIO pin

cat /sys/kernel/debug/gpio

Show temperature

tail -v -n +1 /sys/bus/w1/devices/*/temperature
cat /sys/bus/w1/devices/28-6fb1611f64ff/temperature

Show CPU temperature

cat /sys/class/thermal/thermal_zone0/temp

Detect I2C

root@nanopineo:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@nanopineo:~#