General C++ code for both the avr firmware and the pc software of the project