Update gpio.c

Added function to check if pin exist and resize variables