DataLogging Port to MEGA platform

-fully debugged code