At the other ends of the thread, stitch one to ground and the other to a digital input on your FLORA or GEMMA microcontroller.

Don’t forget to activate the internal pull up resistor when you set up your Arduino sketch.

void setup(){
  pinMode(1, INPUT_PULLUP);

}

This guide was first published on Nov 18, 2014. It was last updated on Nov 18, 2014.

This page (Attach to circuit) was last updated on Nov 17, 2014.

Text editor powered by tinymce.