//arduino.cpp
//221026_1500
/*------------------------------------------*/
#include <Arduino.h>
/*------------------------------------------*/
void setup();
void loop();
void doSomething();
/*------------------------------------------*/
int main() {
init(); // ARDUINO
setup();
for(;;delay(5000)) loop();
return 0;
}
/*------------------------------------------*/
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
/*------------------------------------------*/
void loop() {
Serial.print("HelloWorld!");
doSomething();
}
/*------------------------------------------*/
void doSomething(){
digitalWrite(13, HIGH);
}
/*------------------------------------------*/