1) Copy code di sini (https://drive.google.com/open?id=0B3lxgQrrSRKxVkJjck5YVFE5YTg)
2) Paste ke dalam window arduino.
3) Sambungkan alatan seperti di bawah.
2) Paste ke dalam window arduino.
3) Sambungkan alatan seperti di bawah.
//2 LED Berkelip perlahan int ledPin = 12; int ledPin1 = 13; void setup() { // put your setup code here, to run once: pinMode(ledPin,OUTPUT); pinMode(ledPin1,OUTPUT); } void loop() { // put your main code here, to run repeatedly: digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin1, HIGH); delay(1000); digitalWrite(ledPin1, LOW); delay(1000); }
No comments:
Post a Comment