Added support for Arduino Leonardo and Mega specific features