• ClipSaver
ClipSaver
Русские видео
  • Смешные видео
  • Приколы
  • Обзоры
  • Новости
  • Тесты
  • Спорт
  • Любовь
  • Музыка
  • Разное
Сейчас в тренде
  • Фейгин лайф
  • Три кота
  • Самвел адамян
  • А4 ютуб
  • скачать бит
  • гитара с нуля
Иностранные видео
  • Funny Babies
  • Funny Sports
  • Funny Animals
  • Funny Pranks
  • Funny Magic
  • Funny Vines
  • Funny Virals
  • Funny K-Pop

Arduino MASTERCLASS | How to Use Control Structures PART 6 скачать в хорошем качестве

Arduino MASTERCLASS | How to Use Control Structures PART 6 2 years ago

Arduino

Arduino(Brand)

Arduino Tutorial

Arduino Lesson

Open Source Hardware Group

Learning Arduino

Microcontrollers

Electronics

Arduino IDE

Arduino Sketch

Computer programming

C++

Programming Electronics Academy

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Arduino MASTERCLASS | How to Use Control Structures PART 6
  • Поделиться ВК
  • Поделиться в ОК
  •  
  •  


Скачать видео с ютуб по ссылке или смотреть без блокировок на сайте: Arduino MASTERCLASS | How to Use Control Structures PART 6 в качестве 4k

У нас вы можете посмотреть бесплатно Arduino MASTERCLASS | How to Use Control Structures PART 6 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:

  • Информация по загрузке:

Скачать mp3 с ютуба отдельным файлом. Бесплатный рингтон Arduino MASTERCLASS | How to Use Control Structures PART 6 в формате MP3:


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



Arduino MASTERCLASS | How to Use Control Structures PART 6

🤩 FREE Arduino Crash Course 👇👇 https://bit.ly/get_Arduino_skills **Want to have some fun programming your own electronics?** https://bit.ly/3OU3XDt **Get the code, transcript, challenges, etc for this lesson on our website** https://bit.ly/3zWxN5X **We designed this circuit board for beginners!** Kit-On-A-Shield: https://amzn.to/3lfWClU FOLLOW US ELSEWHERE --------------------------------------------------- Facebook:   / programmingelectronicsacademy   Twitter:   / progelecacademy   Website: https://www.programmingelectronics.com/ ________________________________ Arduino is a great tool for controlling electronic stuff like sensors and motors. But if you wanna build logic into your Arduino program, then you need to understand how to use control structures in your code. In this lesson, we are gonna go rapid fire over several super useful control structures, probably the most important ones. By the end of this lesson, you're gonna have an understanding of how they work and how to use them. Let's go. Now this video is part of a series and where we left off was talking about variables. So if you haven't already, I highly recommend after you watch this video, going back and watching the previous lessons. So far, we've talked about how every Arduino program is laid out, then we talked about using variables we've gone over a little variable example. We sprinkled in a couple of these most important Arduino specific functions, namely pinMode and analogWrite. But now we're gonna start talking about these control structures. What is a control structure? A control structure allows you to adjust the flow of your code. If we go to the Arduino Reference page and we go to Structure, when I'm talking about control structures, I'm talking about these right here. So we have an if statement, fors, else, whiles, switch cases. These are the control structures that are going to allow you to have your code do different things depending on different circumstances. So let's go back to that code and we'll see we have this if statement, so this is some control code and notice it's followed by an opening and a closing parenthesis and inside this is called our condition. So if statements have a condition. If the condition evaluates to true, then the code inside the curly braces gets run. If the condition evaluates to false, then all the code in here just gets skipped over. So you only do the stuff inside the curly braces of an if statement if this is true. Now you might be looking at this and being like, "Wait, what is going on here?" Well, we've got two things going on. So this right here is actually an or symbol. So this condition is saying if the brightness variable is less than or equal to zero, or if the brightness variable is greater than or equal to 255, then do something. So, well, why don't we just evaluate? Let's pretend we're the Arduino and let's evaluate this. So what did we say? We said brightness was five. So if brightness is five, is five less than or equal to zero? Nope, it's not. Is five greater than or equal to 255? Nope, it's not. So that means we're just gonna skip over this line of code right here, the first time through the loop. So we've controlled our code flow, because we haven't used this based on a condition. So then we get to this next line of code and it says delay 30. Here's another one of those super important Arduino functions that you'll learn to love and hate. It's called delay and what it does is it stops the program in its tracks. No other code will run for the amount of time you put in here and this time is in milliseconds. So for 30 milliseconds, we're gonna say, "Stop. Don't do anything, Arduino board." And when we say, "Stop, don't do anything," what we're saying is, "Don't execute any more code," because what we did up here on line 13, when we PWM-ed pin nine to a value of zero, that means the LED was off, there's no brightness there and we're just gonna hold that position. So delay is like, "Hold it, hold it. Okay, go." That's what's going on here. So after the delay, we get to this final curly brace. Here's the end of this loop function and what do we do? We start back up at the top. So we're back at the top. We run into our friendly function, analogWrite, again, using the PWM feature of the microcontroller and what is brightness this time? Well, if you recall last time through, we changed brightness to five. CONTINUED... https://bit.ly/3zWxN5X **About Us:** This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board. **We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

Comments
  • Arduino MASTERCLASS | How to Use Arduino Libraries PART 7 2 years ago
    Arduino MASTERCLASS | How to Use Arduino Libraries PART 7
    Опубликовано: 2 years ago
    51808
  • Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes! 2 years ago
    Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
    Опубликовано: 2 years ago
    3077608
  • Arduino UNO R4 Lesson12 - millis Function | Handling Multiple Tasks | Non-Blocking Code 1 year ago
    Arduino UNO R4 Lesson12 - millis Function | Handling Multiple Tasks | Non-Blocking Code
    Опубликовано: 1 year ago
    10820
  • Arduino 101- Crash Course w/ Mark Rober 1 year ago
    Arduino 101- Crash Course w/ Mark Rober
    Опубликовано: 1 year ago
    1080883
  • Arduino Basics 102: Control Structures, Variables, Interrupts 8 years ago
    Arduino Basics 102: Control Structures, Variables, Interrupts
    Опубликовано: 8 years ago
    496845
  • почему зумеры не бухают 1 day ago
    почему зумеры не бухают
    Опубликовано: 1 day ago
    295693
  • Интерстеллар. Купер умер? 5 hours ago
    Интерстеллар. Купер умер?
    Опубликовано: 5 hours ago
    38247
  • Using tabs to organize code with the Arduino IDE 3 years ago
    Using tabs to organize code with the Arduino IDE
    Опубликовано: 3 years ago
    67788
  • Beat Neymar, Win $500,000 3 days ago
    Beat Neymar, Win $500,000
    Опубликовано: 3 days ago
    75694194
  • How To Make Drone With Hand-made Radio Control. DIY Drone 4 years ago
    How To Make Drone With Hand-made Radio Control. DIY Drone
    Опубликовано: 4 years ago
    4917601

Контактный email для правообладателей: [email protected] © 2017 - 2025

Отказ от ответственности - Disclaimer Правообладателям - DMCA Условия использования сайта - TOS