|

Tinkercad Arduino yürüyen ışık, karaşimşek uygulaması, değişkenler, for döngüsü

https://youtu.be/A9p8toNNstU

byte i;
int sure = 100;

void setup() {
  for (i = 0; i <= 9; i++)
  {
    pinMode(i, OUTPUT); // 0 - 9 pinleri çıkış yap.
  }
}

void loop()
{
  for (i = 0; i <= 9; i++)
  {
    digitalWrite(i, HIGH);
    delay(sure);
    digitalWrite(i, LOW);
  }
  for (i = 8; i > 0; i--)//ilk ve son LED dönüşlerde bir kez yanar.
  {
    digitalWrite(i, HIGH);
    delay(sure);
    digitalWrite(i, LOW);
  }
}

Benzer Temrinler & Yazılar

  • |

    Yeni sayfa açmak.

    Giriş Çıkış A Q 0 1 Eleman Adı Değeri Katagorisi Alt-Katagorisi R2,R3 RES 390 Resistors Generic U1 NOT NOT SimulatorPrimitives Gates D2,D3 LED-RED LED-RED Optoelectronics LEDs İşlem basamakları: Devreyi çiziniz. Girişlerin durumuna göre çıkış tablosunu doldurunuz. düğmesiyle aynı proje dosyası içinde yeni sayfa açınız. Ekranda sağ tıklayarak istediğiniz sayfaya geçiş yapınız  

  • ew

    A Summary of Rules and Guidelines for Waves From a theoretical standpoint, we must be careful not to confuse Elliott waves with their measures, which are as a thermometer is to heat. A thermometer is not designed to gauge rapid short-term fluctuations in air temperature and neither is an index of 30 stocks constructed so…

  • “Decimal – binary dönüşümü

    Decimal to Binary Converter RapidTables Home›Conversion›Number conversion›Decimal to binary Decimal to Binary converter From BinaryDecimalHexadecimal To BinaryDecimalHexadecimal Enter decimal number 10 Convert Reset Swap Binary number 2 Binary signed 2’s complement 2 Hex number 16 Digit grouping Decimal to binary calculation steps Divide by the base 2 to get the digits from the remainders: Divisionby…

Bir Yorum Yazın

E-posta adresiniz yayınlanmayacaktır. Gerekli alanlar * ile işaretlenmiştir.