Nurmaxmatov Dilxush 1-labaratoriya
LED lampaning yonib o’chishi uchun Yoziladigan kod
import muvium.compatibility.arduino.*;
public class Class0 extends Arduino{
// The setup() method runs once, when the sketch starts
public void setup(){
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
// Your setup code goes here
}
// the loop() method runs over and over again,
// as long as the Arduino has power
public void loop(){
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
// Your loop code goes here
}
}
Do'stlaringiz bilan baham: |