Fixes around analog read

Most of the changes are around analog read, also driver detection and a delay on pin export in case UDEV rules are in place.