openbsd-ports/devel/arduino/files/template.ino
jasper aa0045971b - update arduino to 1.0, please see the changelog:
http://arduino.cc/blog/2011/10/04/arduino-1-0/
   - various changes related to this port:
      * adjust sketch extensions from .pde to .ino
	 * deal better with different arduino variants
	    * adjust template to get it compiling/linking again

	    tested by various
2012-04-24 06:37:32 +00:00

33 lines
519 B
C++

/*
* $OpenBSD: template.ino,v 1.1 2012/04/24 06:37:32 jasper Exp $
*
* Arduino projects run something like this:
* main() {
* init(); // arduino private setup
* setup(); // your setup goes here
* while(1) {
* loop(); // your main loop
* }
* }
*
* Arduino reference is at ${TRUEPREFIX}/share/doc/arduino/reference/
*/
#ifdef __cplusplus
extern "C" {
#endif
void setup(void) {
/* your code here */
return;
}
void loop(void) {
/* more of your code here */
return ;
}
#ifdef __cplusplus
}
#endif