merge contents of contiki-arduino.c into main.c