code is now equivalent to microcontrollers code