Вернуться на страницу библиотеки модулей

int ledPin = 13;    // pin to control KY-034

void setup() {                
  pinMode(ledPin, OUTPUT);    // define pin as output
}

void loop() {
  digitalWrite(ledPin, HIGH); // turn LED on
  delay(3000);                // wait for 3 seconds
  digitalWrite(ledPin, LOW);  // turn LED off
  delay(1000);                // wait for a second
}

Рекомендуемые ссылки:
Arduino 7 Color Flashing LED Module KY-034 – Wiring Diagram & Code
KY-034 7 Color flash-LED – SensorKit
KY-034-Joy-IT.pdf
KY-034 Module : Pinout, Datasheet & Its Working
Project Details – Codebender
How to Use ky-034 Modulo led 7 colores: Pinouts, Specs, and Examples | Cirkit Designer

Вернуться на страницу библиотеки модулей