Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб Arduino Uno R4 Minima Review + Project |📟 в хорошем качестве

Arduino Uno R4 Minima Review + Project |📟 1 год назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



Arduino Uno R4 Minima Review + Project |📟

Parts Used In This Video: 1x Arduino UNO R4 Minima 1x Red LED 1 x 220Ohm Resistor 6 x Jumper Wires 1 x Push Button 1 x Breadboard 1 x USB-A to USB-C Cable Code: // constants won't change. They're used here to set pin numbers: const int buttonPin = 7; // the number of the pushbutton pin const int ledPin = 6; // the number of the LED pin // variables will change: int buttonState = 0; // variable for reading the pushbutton status void setup() { // initialize the LED pin as an output: pinMode(ledPin, OUTPUT); // initialize the pushbutton pin as an input: pinMode(buttonPin, INPUT_PULLUP); } void loop() { // read the state of the pushbutton value: buttonState = digitalRead(buttonPin); // check if the pushbutton is pressed. If it is, the buttonState is HIGH: if (buttonState == LOW) { // turn LED on: digitalWrite(ledPin, HIGH); } else { // turn LED off: digitalWrite(ledPin, LOW); } }

Comments