Fixed PFIO C library: PIN starting from 0, no more flashing on init and fixes on input read