e58051ea46
Keep things simple. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
26 lines
322 B
C++
26 lines
322 B
C++
// Blinks the built-in LED
|
|
|
|
#include <wirish/wirish.h>
|
|
|
|
void setup() {
|
|
pinMode(BOARD_LED_PIN, OUTPUT);
|
|
}
|
|
|
|
void loop() {
|
|
togglePin(BOARD_LED_PIN);
|
|
delay(100);
|
|
}
|
|
|
|
__attribute__((constructor)) void premain() {
|
|
init();
|
|
}
|
|
|
|
int main(void) {
|
|
setup();
|
|
|
|
while (true) {
|
|
loop();
|
|
}
|
|
return 0;
|
|
}
|