Fun with Arduino 04 Readable & Maintainable Code , #define VIDEO
More info: https://rudysarduinoprojects.wordpress.com/2019/01/11/fun-with-arduino-04-readable-and-maintainable-code-with-define/
The goals in this video are:
- To make our code better readable and easier to maintain.
- We imagine an output pin to operate 20 street lights on a model railway layout. They switch on when we press the button. To simulate a night cycle we want them to stay on for 3 minutes and then automatically switch off again.
Other Videos By Rudy's Hobby Channel 2019-02-14 Fun with Arduino 14 Day Night Cycle with millis(), no Delay, Direct Feedback 2019-02-10 Fun with Arduino 13 Timer with millis(), no delay(), Multitasking 2019-02-07 Fun with Arduino 12 Analog Input, analog.Read() - Chane Range, map() 2019-02-03 Fun with Arduino 11 Keyboard Input via Serial Read and ParseInt 2019-01-31 Fun with Arduino 10 Show Cycle Status and Time with Serial.print 2019-01-27 Fun with Arduino 09 Variables & Data Types byte int long unsigned 2019-01-24 Fun with Arduino 08 User Interface Serial.print() 2019-01-20 Fun with Arduino 07 Day & Night Cycle, Multiple Light Groups, Random Times 2019-01-17 Fun with Arduino 06 Automatic Day & Night Cycle with on/off Switch 2019-01-13 Fun with Arduino 05 Connect More LEDs with Relay or FET 2019-01-11 Fun with Arduino 04 Readable & Maintainable Code , #define 2019-01-05 Fun with Arduino 03 External LED and Resistor 2019-01-01 Fun with Arduino 02 Digital Input Output 2018-12-30 Fun with Arduino 01 Getting Started in 6 Easy Steps 2018-12-26 €0,- DIY Light Box Photo Studio for Product Photography 2018-12-20 ZOMEI Q666 Tripod Monopod with Fluid Panning Ball Head 2018-12-15 Maono lavalier microphone Basic 7 review 2018-12-08 Q08S Tripod Fluid Head for Video Camera (Andoer, or other) 2018-11-12 Arduino PIR Sensor Fade Kitchen LED Lighting 2018-11-01 Model Train Reversing Loop - Arduino Controlled 2018-10-29 KSGER T12 Soldering Station €35,- ... is it any good?
Tags: Arduino
Uno
Nano
maintainable
readable
define
#define
LED
resistor
delay
delay()
tutorial
starter
kit