Linnea timer

linnea timer

unsigned long sekunder = 10; 

void setup() 
  pinMode(2, INPUT);      
  pinMode(9, OUTPUT);     
  pinMode(12, OUTPUT);    
  pinMode(13, OUTPUT);    
  digitalWrite(13, HIGH);  

void loop() 
  int buttonState = digitalRead(2);
  sekunder = sekunder*1000;
  if(buttonState == HIGH)
    digitalWrite(13, LOW);
    digitalWrite(12, HIGH);
    digitalWrite(13, HIGH);
    digitalWrite(12, LOW);


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s