Lampu LED Arduino

LAMPU LED ARDUINO


1. ALAT DAN BAHAN :

    a. Arduino Mega 2560

    b. Kabel Jumper 

    c. Breadboard

    d. Lampu LED

    e. Kabel USB Arduino


2. LIBRARY :

  Tidak Ada


3. RANGKAIAN :

    a. GND -> GND

    b. OUT -> PIN 22


4. CODING :

  int ledpin = 22;

void setup() {
  // put your setup code here, to run once:
  pinMode(22, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(ledpin, HIGH);   
  delay(500);
                
  digitalWrite(ledpin, LOW);    
  delay(500);             
}


5. HASIL FOTO :



6. HASIL VIDEO :



Lampu LED Arduino Lampu LED Arduino Reviewed by PKLSMKPTPWS on Oktober 16, 2022 Rating: 5

Tidak ada komentar