SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

Member #230259

Member Since: June 4, 2011

Country: United States

  • I’m an idiot. But just in case there are others out there… the below code works fine. Apologies for the funky formatting…

    const int s1_pin = 13; const int s2_pin = 12;

    void setup() {



    void loop() { int s1 = digitalRead(s1_pin); int s2 = digitalRead(s2_pin);

    Serial.print( “S1 = ”); Serial.print( s1 ); Serial.print( “; S2 = ”); Serial.println( s2 ); delay(250); }

  • Anyone have some arduino code for this device they’d be willing to share?

No public wish lists :(