Вы находитесь на странице: 1из 1

int ledpin=13 ;

void setup()// This


{
pinMode(ledpin,OUTPUT);
}

void loop()
{
digitalWrite(ledpin,HIGH);// It sets the output to ledpin as 5V(high).
delay(500);// time passed here is in milliseconds.
digitalWrite(ledpin,LOW);// It sets the output to ledpin as 0V.
delay(5000);// time passed here is in milliseconds.
}

sudo chmod 777 /dev/tty port number

Вам также может понравиться