Skip to content

Tips & tricks & pitfalls

Tinkerspy edited this page Mar 7, 2016 · 17 revisions

Tips & tricks

  • Sending and receiving messages with data
  • Hiding machines and factories inside other machines

Pitfalls

Hanging messages in the message queue

Start up race condition with machine->trigger( EVT_XXX )

void setup() {
  led.begin( 3 );
  led.cycle().trigger( EVT_ON );
}

void loop() {
  led.cycle();
}