through third module. Code abstracted into functions. GPIO bitmasking so as to allow simultaneous use of pins