Stránka 2 z 2

Napsal: 25 čer 2013, 17:56
od jova1
Koukal jsem doma a tu 08 navíc bohužel nemám.

Napsal: 29 čer 2013, 22:53
od frpr666
Jo v pohodě to naprogramuješ v Arduino.

Kód: Vybrat vše

Example

 
int ledPin = 13;                 // LED connected to digital pin 13
int cnt;

void setup()
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
}

void loop()
{
  if (cnt<10){
    digitalWrite(ledPin, HIGH);   // sets the LED on
  }
  else{
   digitalWrite(ledPin, LOW);    // sets the LED off
  }
  delay(1000);                       // waits for a second
  cnt++;
  if (cnt>=600) cnt =0;
}