Difference between revisions of "Main.cpp"

From Makerfire
Jump to: navigation, search
(Created page with "<pre style="color:blue"> #include <Arduino.h> int main(void) { init(); #if defined(USBCON) USBDevice.attach(); #endif setup(); for (;;) { loop(); if (serialEv...")
 
(No difference)

Latest revision as of 07:37, 9 March 2018

#include <Arduino.h>

int main(void)
{
	init();

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