Continuing to explore the GPIO and the devices and sensors we can use with Fedora installed on a Raspberry Pi 3, in this post I will describe how to use a 1wire temperature sensor, in this case a DS18B20.
GPIO sysfs interface is deprecated, and in the future it will be removed from the kernel. So in Fedora the kernel is compiled without such flag. As a consequence we don’t have the /sys/class/gpio path. We have instead the /dev/gpiochipN character device. This means that the piles of examples you can find on the web are unuseful on Fedora in order to drive, for instance a LED from the command line (echo 22 > /sys/class/gpio/export and stuff like this doesn’t work).