port code to arduino and common cathode for new board