Implemented majority of calc-to-Arduino protocol