How to Use Functions in Arduino Programs - Ultimate Guide to the Arduino #18
Вставка
- Опубліковано 12 кві 2023
- Functions are the code in your program that get things done. They can be used to get data from a sensor, set pin voltages, print text to LCD displays, and so much more. Learn all about how to use functions on the Arduino with this in-depth tutorial!
This is tutorial #18 in the Ultimate Guide to the Arduino, a complete video course on the Arduino microcontroller with 45 lessons that are designed to teach anyone how to master the Arduino at any skill level. Visit our UA-cam channel page to watch the entire series!
Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
www.sunfounder.com/products/s...
Or get the kit from Amazon:
US Amazon: amzn.to/3W1Mahh
DE Amazon: amzn.to/3j0oETn
JP Amazon: amzn.to/3UYrHZG
UK Amazon: amzn.to/3uTJZAC
CA Amazon: amzn.to/3W2vExN
Get an Arduino Uno from SunFounder here:
www.sunfounder.com/products/a...
Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
www.circuitbasics.com/using-f...
And be sure to check out the Circuit Basics blog and social media for more articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects!
www.circuitbasics.com
Facebook: / circuitbasic
Twitter: / circuitbasics
Instagram: / circuitbasics - Наука та технологія
Works like a charm...! One of the best tutorial i've seen in youtube.
for a guy like me who's just getting started in arduino,you have my "thanks".
If you want the function to return/output something,
write the datatype (like "int") instead of void
and use "return dataToOutput;".
Compilation error: 'blinkLED' was not declared in this scope
At 1:37, this statement is incorrect. A function does NOT need an input nor does it need to return an output! You can call a function just to DO something.
Me 10 years working the Arduino