Hi,
I'm using the CLI Unix toolchain on Linux to develop for a Maple Mini board I have. But I'm running into various strange problems.
1) using a toggleLED(), the delay is not accurate. For example, when set to 1000 ms, it take approximately 10x as much, or 10 seconds;
2) using Serial1.begin() or Serial2.begin(), even if after this I doesn't touch in code related to serial again, the LED doesn't blink. If I reset the board, it may or may not blink 2 or 3 times, but after this it stops.
I'm compiling with
$ BOARD=maple_mini make
and the code is the simpliest:
#include <wirish/wirish.h>
void setup() {
// Set up the built-in LED pin as an output:
pinMode(BOARD_LED_PIN, OUTPUT);
Serial1.begin(9600);
}
void loop() {
toggleLED();
delay(100);
}
int main(void) {
setup();
while (true) {
loop();
}
return 0;
}
Any hints?
Thank you.