- get rid of unnecessary global variables from rpi gpio code