Initial import of support files for all Digistump boards - Digispark, Pro, DigiX - including libraries, examples, tools, and other support files for the Arduino IDE

This commit is contained in:
Erik Tylek Kettenburg
2014-12-19 08:45:50 -08:00
parent 97abdbf157
commit 7e7473a2d6
3567 changed files with 722870 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
int irPin=2;
void setup()
{
pinMode(irPin,INPUT);
pinMode(0,OUTPUT);
//Serial.begin(9600);
digitalWrite(0,HIGH);
//Serial.println("You pressed a button");
delay(1000);
digitalWrite(0,LOW);
}
void loop()
{
if(pulseIn(irPin,LOW))
{
//button pressed
delay(100);
digitalWrite(0,HIGH);
//Serial.println("You pressed a button");
delay(1000);
digitalWrite(0,LOW);
}
}