Update to support sine amplitude and offset
Move main.cpp to firmware directory