updated api/services/gpio.js with example gpio code