-
Notifications
You must be signed in to change notification settings - Fork 0
BareMinimum
Guilherme Lima Bernal edited this page Aug 8, 2014
·
6 revisions
This example is based on http://arduino.cc/en/Tutorial/BareMinimum
The usual code structure of the libraries. Notice that Highino uses a more traditional approach, with the main function and a hand-written loop. This means you have more control of what will execute. Also there are no files being magically included. The code is pure C++.
##Arduino
void setup() {
// Setup code here.
}
void loop() {
// Main execution here.
}Binary size: 647 bytes.
##Highino
int main() {
// Setup code here.
while (true) {
// Main execution here.
}
}Binary size: 304 bytes (47.0%).