rename digital to digital_pin and add require file