add new function to wiring_digital.c

thank you