Int led red =4
Download 327.48 Kb.
|
Svetafor Shoniyor 051-19
https://www.tinkercad.com/things/cE1vpfu15d2-powerful-fyyran/editel?sharecode=toGKuxnTSlDg_ow1Lie0RbQKyoSICx78tcbq_EFuVNw KOD int led_red =4; int led_yellow = 3; int led_green = 2; boolean led_on = HIGH; void setup () { pinMode(led_red, OUTPUT); pinMode(led_yellow, OUTPUT); pinMode(led_green, OUTPUT); } void loop() { digitalWrite(led_red, HIGH); delay(2000); // digitalWrite(led_yellow, HIGH); delay(700); // digitalWrite(led_red, LOW); digitalWrite(led_yellow, LOW); digitalWrite(led_green, HIGH); delay(2000); // for (int i=0; i<6; i++) { led_on = !led_on; digitalWrite(led_green, led_on); delay(500); // } digitalWrite(led_yellow, HIGH); digitalWrite(led_green, HIGH); delay(700); // digitalWrite(led_yellow, LOW); } Download 327.48 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling