Create AS5040.cpp

First version, totally doesn't work because there's no code in the functions yet.