Don't Let Your Arduino Code Turn Into a Mess (for C++ beginners)
It is very common for beginners to write "digitalRead" and "digitalWrite" everywhere all over the code. This makes it harder to read since it is very low level of abstraction and you have to think about wire connections while trying to understand what the code is supposed to do. To improve readability of your code it is good idea to make functions with descriptive names that clearly say what you actually want to do and then do the necessary "digitalRead" or "digitalWrite" inside that function.
Music from Youtube audio library.
Видео Don't Let Your Arduino Code Turn Into a Mess (for C++ beginners) канала Indrek
Music from Youtube audio library.
Видео Don't Let Your Arduino Code Turn Into a Mess (for C++ beginners) канала Indrek
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
OV7670 Camera module to PC with Arduino (SIMPLIFIED!)Arduino serial output to Excel/CSV (for Legacy IDE 1.8.x)Programming ESP-12E / ESP-12F / NodeMCU Over Wi-FiProgramming ESP-12E / ESP-12F / NodeMCU With Arduino IDE | Step by Step GuideThese Dominos Fall UpwardsINVERTED Dominos (Tenet Spoof)CREEPY Escape Room Timer | Arduino Project (with ESP8266)HX711 with a Four Wire Load Cell and Arduino | Step by Step Guide.Iterative Design in the WildMounting the 50kg Bathroom Scale Load Cells to a BoardArduino Scale with HX711 and 50kg Bathroom Scale Load Cells | Step by Step Guide.P-Channel MOSFET as a Switch. Turn ON a 12V Motor with Arduino. (Step-By-Step Guide)N-Channel MOSFET as a Switch. Turn ON a 12V Motor with Arduino. (Step-By-Step Guide)The Simplest Way to Wire a Button to Arduino (with Internal Pull-Up) | Arduino Button TutorialShow prop - Arduino Hotline PhoneUsing MP3 player module to play sound (Arduino project) - Activity Box #2Arduino Powered Baby Activity Box #1Use Your Arduino Memory More Efficiently (C++ Tutorial)DfPlayer Mini Module - Play MP3 Files With an Arduino (Step-by-step Guide)Update: Save Images To a Folder with OV7670 and Arduino