Arduino Uno R4 WiFi LESSON 40: Using Arduino Functions with Local Variables Explained

  Рет қаралды 2,132

Paul McWhorter

Paul McWhorter

Күн бұрын

Pick your Sunfounder kit up so you get the same results I do:
amzn.to/3SciApZ
You can pick up the neat jumper wires I showed in the video here:
amzn.to/3U2vyIe
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this video I show you how to understand the concept of arduino functions. Today, I show how to pass parameters from the main loop and the function using local variables. Also, I show how to return values from the function to the main loop. I also show how to pass variables by either value or reference. Enjoy!
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
#arduinor4wifi
#scope
#tutorial

Пікірлер: 28
@gregp74
@gregp74 11 күн бұрын
Thanks! Another great class! Many moons ago when I was taking programming classes in college the question of returns vs reference would rive my OCD through the roof! If I knew a program was going to have some complex functions that needed to be done by reference because they had multiple results, I'd end up doing everything that way just for the sake of consistency. Just giving a return value always seemed easier to keep track of though.
@paulmcwhorter
@paulmcwhorter 10 күн бұрын
Glad you're enjoying the deep dives! Really appreciate the support, it means a lot.
@SkyBluePathfinder
@SkyBluePathfinder 3 ай бұрын
Hi my grampa showed me your videos! I love them
@SkyBluePathfinder
@SkyBluePathfinder 3 ай бұрын
But seriously no creamer in coffee?
@pdaip9680
@pdaip9680 3 ай бұрын
This lesson was a revelation to me and I wish you had put this out ten years ago when I really needed it. Never understood the return value in the function (&a instead of a) until today. Many thanks!
@Clendy321
@Clendy321 3 ай бұрын
im on episode 17, but i love vids, I am going to ask everyone to reply and say Paul Mcwhorter is best!
@bromsnor7852
@bromsnor7852 2 ай бұрын
Great lesson. Thank you
@paulmcwhorter
@paulmcwhorter 2 ай бұрын
Wow, thanks, I really appreciate that!
@daviddirac5942
@daviddirac5942 Ай бұрын
Very clear lesson. Now I understand one use of &variable❤
@larryplatzek9017
@larryplatzek9017 3 ай бұрын
Of course this was another great lesson! Thank You Paul!
@paulmcwhorter
@paulmcwhorter 3 ай бұрын
My pleasure!
@THINGS_101-m8e
@THINGS_101-m8e 3 ай бұрын
Homework: Lesson 40, using Arduino Functions and writing a user-defined function to exponentially control the brightness of a light-emitting diode (LED). Video link kzbin.info/www/bejne/bpiag4SnbdiMn68
@patrickfox-roberts7528
@patrickfox-roberts7528 3 ай бұрын
thanks Paul
@charlotteswift
@charlotteswift 3 ай бұрын
Hi Paul & Guys I've made a video for lessons 31, 33, 35 and 36. I'm not leaving a link to it here but you can find it on my channel if anyone is interested. It is rather imaginatively called 'My video for Paul McWhorter's Arduino Uno R4 Lessons 31, 33, 35 & 36'. Unfortunately it doesn't have any bears, ducks or cats appearing in it.
@paulmcwhorter
@paulmcwhorter 3 ай бұрын
LEGEND!
@310765
@310765 3 ай бұрын
Retrangle? Thanks Paul 😁👍🏼
@jimf99
@jimf99 3 ай бұрын
Great Teaching Series! Thanks Paul! I have submitted my first HW Video, using TinkerCad, and a MacOS Laptop. Hope it's okay for the basic concepts. I don't have a very good studio setup at this time.
@paulmcwhorter
@paulmcwhorter 3 ай бұрын
Interesting!
@Clendy321
@Clendy321 2 ай бұрын
No more "im on episode 17" now I'm catching up, im on dis one now!
@paulmcwhorter
@paulmcwhorter 2 ай бұрын
Excellent! well done.
@charlotteswift
@charlotteswift 3 ай бұрын
I've published a video for this lesson (40) which you can find on my channel. I've also played around with the little heart on the back of the R4 boards which I found quite interesting (but challenging).
@paulmcwhorter
@paulmcwhorter 3 ай бұрын
LEGEND!
@VeryUsMumblings
@VeryUsMumblings 3 ай бұрын
I'm hoping to get caught up in this course. Good lesson! 👍 Here's my homework: kzbin.info/www/bejne/gYvcppSah92eh9U
@paulmcwhorter
@paulmcwhorter 3 ай бұрын
LEGEND!
Arduino Uno R4 WiFi LESSON 41: Controlling LED Brightness with Functions
39:01
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Arduino Uno R4 WiFi LESSON 55: Measure Air Pressure With Arduino
50:22
Paul McWhorter
Рет қаралды 1,4 М.
Claude has taken control of my computer...
4:37
Fireship
Рет қаралды 1,1 МЛН
What if all the world's biggest problems have the same solution?
24:52
I put ChatGPT on a Robot and let it explore the world
15:24
Nikodem Bartnik
Рет қаралды 1,5 МЛН
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 594 М.
C can do this too and it's faster than Python
2:09:48
Tsoding Daily
Рет қаралды 4,2 М.