summaryrefslogtreecommitdiffstats
path: root/protocol/usb_hid/arduino-1.0.1/cores/arduino/main.cpp
blob: 3d4e079d2a000a076350509dd424942df5949921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Arduino.h>

int main(void)
{
	init();

#if defined(USBCON)
	USBDevice.attach();
#endif
	
	setup();
    
	for (;;) {
		loop();
		if (serialEventRun) serialEventRun();
	}
        
	return 0;
}