Automaton: Led.begin() hangs on Leonardo

Basically the simple sketch like this

Atm_led led1;
void setup() {
	led1.begin(2);
}

void loop() {
	delay(1000);
}

results in Leonardo hanging indefinitely. Worked fine in Due.

I found out commenting out this line makes it fall through: https://github.com/tinkerspy/Automaton/blob/master/src/Atm_led.cpp#L32

Is there any dark magic there? I cannot even find a state() function for Led.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Well, either I was stupid or recent lib update fixed something. Can’t reproduce anymore. Blinks like a baby.