const int pinLEDLft = 19; // the number of the LED pin
 const int pinLEDRht = 20; // the number of the LED pin
 const int pinLEDTeensy = 11;
 const int pinIROut = 12;
 const int pinIRIn = 9;
 int stateLEDLft = HIGH;
 int valIR;
 void setup() {
   pinMode(pinLEDLft, OUTPUT);
   pinMode(pinLEDRht, OUTPUT);
   pinMode(pinIROut, OUTPUT);
   pinMode(pinLEDTeensy, OUTPUT);
 void loop() { 
   Serial.print("IRTest ");
   digitalWrite(pinIROut, stateLEDLft);
   digitalWrite(pinLEDTeensy, stateLEDLft);
   //digitalWrite(pinLEDLft, stateLEDLft);
   stateLEDLft = !stateLEDLft;
   valIR = analogRead(9); 

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.