Main code for Arduino IDE added.