LESSON 35: Passing Parameters and Variables by Reference in Arduino Functions

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 162

  • @jamesmoon5632
    @jamesmoon5632 Рік тому +4

    Last few lessons have made so much sense and made my programming 300% better

  • @davidstonier-gibson5852
    @davidstonier-gibson5852 2 роки тому +3

    I came across this while researching for training for a young friend in Nigeria. I like your very gently staged style. And I love that background music ;-)

  • @tensor131
    @tensor131 Місяць тому

    I trawled the interment for a full and clear explanation of what is done here. Thank you so much Paul - another brilliant lesson.

  • @gl0sek
    @gl0sek 6 років тому +16

    I wish I had a teacher like you when I was attending school. With your explenation everything looks so simple!

  • @antrikshfulwani7087
    @antrikshfulwani7087 Рік тому +2

    Wow, this series was good. I finished it in 3 days, and I don't wanna stop. Thank you for another amazing series!

  • @tbac2432
    @tbac2432 5 років тому +28

    Hello sir, Will you be making more videos?
    You are missed by many

  • @elecdesignhub
    @elecdesignhub 5 років тому

    All the 36 UA-cams are built with lot of care and really useful for learning Arduino. Thanks Paul.

  • @bliksemdonder5624
    @bliksemdonder5624 5 років тому +1

    After a hiatus of more than 30 years from programming I started "playing" with Arduino projects. I remembered some of the C lessons, lectures and exercises from back then but things like state machines and pointers I needed refreshing. Your short and to the point lessons are very good for learning and refreshing. Thank you.

  • @joelennox782
    @joelennox782 3 роки тому +4

    This was very useful to me. I’ve watched the second Arduino series and the robotics but this clarifies the workings of variables in functions. Always good to plug in with you Paul.

  • @paparoysworkshop
    @paparoysworkshop 6 років тому

    I've used the Arduino for several years now but one thing I am not good at is teaching it to others. So whenever someone asks me how to program the Arduino I first direct them to watch your videos. After they've watched most of this series, I then also encourage them to watch other channels such as Ralph S Bacon.
    Your videos are fantastic and your teaching style works well with beginners. It's the best channel I've found to start learning with.

  • @robertherzog2087
    @robertherzog2087 4 роки тому

    I have learned so much from your lessons, both if using the Arduino controller and in the programming language itself. In this lesson, it was all programming. I enhanced the program to use a separate function for ADD, SUBTRACT, MULTIPLY, DIVIDE and finding the SQUARE of the first number. I used REFERENCE to pass parameters back as well as the return command.

  • @naboulsikhalid7763
    @naboulsikhalid7763 5 років тому +2

    what a great explanation (passing by reference), first time explained, first time understood. Thank you

  • @arjenvandijk6355
    @arjenvandijk6355 4 роки тому +1

    Hi Paul,
    How are you?
    Leared a lot today by watching your lessons how to pass variables and parameters to and from arduino functions by using the pass by reference method. From now on I will use this easy methode! BOEM!!
    PS Nice to see we share the same passion : God (at the first place) and ARDUNIO ;-)

  • @davypeleman3672
    @davypeleman3672 5 років тому +5

    Thanks for the lessons on arduino, watched all. You explained it so well. Good luck with further projects.

  • @vishalpaul5268
    @vishalpaul5268 6 років тому

    for people like us who wants to learn but because of lack of money our dreams never come true, you are giving us hope......thank you so much sir

  • @cammy573
    @cammy573 5 років тому +15

    "BOOM!!"
    me: *spills coffee*

  • @batticha462
    @batticha462 5 років тому

    Great teacher and lessons. Thanks to this course you don't have to leave the house

  • @dannyjensen4954
    @dannyjensen4954 3 роки тому

    Really good example at the end on the pass by reference and that is what I was interested in. I just did a fast forward got what I needed. For some reason I could not find this in all my google searches. You really do a good job on the videos and they will last forever. Thanks for all your efforts. Thank BOOM was exactly what I wanted!

  • @brians7875
    @brians7875 2 роки тому

    Paul, your teaching style is great! I have been trying to learn arduino programming for a while. It is finally starting to click. Thanks to your tutorials.

  • @PandaRumbleTummy
    @PandaRumbleTummy 5 місяців тому

    Thank you so much, I've struggled to understand the nature and implementation of communicating to and from functions. This lesson cleared my lack of understanding. ❤

  • @stever3886
    @stever3886 4 роки тому

    Excellent lesson. I typed some notes on this lesson because you covered a LOT of details. I took special note on function construct, order of argument list in tally(). Noted no RETURN in this construct, concur like this better. I looked up the reference operator (&) and I found out that it actually returns the address and retrieves the value of that variable Address....awesome. I assume we don’t have a RETURN because we are using the argument list list instead.....and I also assume this is a void function because we don’t have the RETURN as well. Finally I learned that in the tally() function definition the variables were type cast in the definition argument.....I did try to type cast them in the function body and I got some compiler errors. I LEARNED SOMETHING VALUABLE.......THANKS.

  • @seditiousmonkeyart
    @seditiousmonkeyart 5 років тому

    Hello Paul. I have now watches several of your videos and really getting a lot from them. You explain things clearly and thoroughly. Definitely up with the best. You have helped me get my head around functions and getting cleaner code.
    Thank you and keep up the great work.

  • @knvk2008
    @knvk2008 3 роки тому +1

    Thank you Paul for sharing with us your valuable knowledge in such a lucid fashion :) . Thanks a lot.

  • @rickm4130
    @rickm4130 6 років тому +1

    Thanks Paul, I use your lesson's as a reference guide. Please keep the video's coming!

  • @kingofcastlechaos
    @kingofcastlechaos 6 років тому

    I am behind on providing the comments you've asked for. I am have gone through your entire series on Arduino, Python, BeagleBones, and Raspberry Pi. This is a tremendous teaching medium, and you really have it dialed in, many thanks.
    Because of you, I bought the UA-cam Red so I can download the series. Like many Texans, I have a long commute to work, and I listen to the audio a couple of times before I sit down to watch them. They are so well done that I can visualize the operations in my mind without needing the visual component. I mentor a HS robotics team (FRC) and they use LabView for the robot. These series have given me a great knowledge base to work off even for other programming languages, but I would love to see you do a series on LabView, especially since I think it would mesh perfectly with your High Altitude Ballooning operations.
    My only "complaint" would be that I have noticed that you use fewer comments in the code as we go along. I usually FF to the end code, read it, then go back to the beginning to watch the whole thing. That is how I have been gauging my progress, on how well I read it. By the way, I'm an old guy too, just a couple years from retirement.
    Keep up the good work! I hope your school district recognizes what they have in you. You are leaving an impressive legacy. Best regards.

    • @kingofcastlechaos
      @kingofcastlechaos 6 років тому

      I finally settled on the BeableBone Blue for most of my robotics, and BeagleBone Black for projects that use LabView. The series you did on Linux was instrumental in moving those projects along. Thankfully, I started computers prior to DOS coming out, so the command line stuff was rusty and dusty, but eventually I remembered most of how that worked. If you are interested in LabView, let me know since I have many contacts at National Instruments. They are a big sponsor of FIRST robotics and wonderful people.

  • @AO_Cthulhu
    @AO_Cthulhu 6 років тому

    Thank you so much for your videos! I started learning arduino in my spare time and going through your first few lessons got the ball rolling. As I wanted to advance my programs I kept coming back to learn how to do so.

  • @luwang404
    @luwang404 5 років тому

    Hey Paul! your videos are crystal clear, one of the best across UA-cam. Please make new tutorial series for our sake. PLIZ

  • @mcgrewbr9990
    @mcgrewbr9990 4 роки тому

    Thank you very much for these lessons. I will now watch your new series. I made a grain bushel estimator to load our trucks on the farm. It uses an amp meter on the grain leg and I calibrate it.

  • @ricardobjorkeheim775
    @ricardobjorkeheim775 3 роки тому

    this makes more sense than the return alternative and is easier to understand and debug. thanks!

  • @AliRashidi97
    @AliRashidi97 3 роки тому

    It was a great tutorial. I'm very thankful for the amount of effort and time you put in to teach us Arduino programming.
    I had tried to learn Arduino before but you are the only tutor I could continue the course to the end. Best wishes Mr.McWhorter.

  • @Juliapak
    @Juliapak 6 років тому

    Very good tutorial. Studied comp sci at uni back in 2003. I'm playing around with Arduino now. Wish this was around back when I was learning to code- would have made the learning more fun and easy.

  • @ShinesMonkey1
    @ShinesMonkey1 4 роки тому

    This is another great lesson to take my programming to the next level. Thanks so much!

  • @ricardobjorkeheim775
    @ricardobjorkeheim775 4 роки тому

    " Hello guy, hold your breath and BOOM :) !!!" you are great teacher Paul.
    I would be great if you have a lesson with the wifi module, thanks!

  • @pauljackson108
    @pauljackson108 5 років тому +1

    Hi Paul, you have a fantastic teaching style, perfect pace and an obvious understanding of how a student can be guided efficiently to understand the topic. I subscribed to your channel without hesitation. I would love an explanation of how I can input a string of numbers one by one from a touch screen and turn the string into a real number that the rest of the program can make calculations from. My stumbling point is how to handle the decimal part of the string. I also want to validate the number to be between 2 and 25. I have seen many examples of code to read numbers from a keypad or a touch screen keypad, but none have ever handled a number such as 19.7

  • @techknowdroid8144
    @techknowdroid8144 6 років тому

    Sir, You are the BEST !! Your explanations are so well structured that understanding arduino coding has really become very easy, for hobbyists like myself. Thanks and God Bless.

  • @mikoajnowacki2788
    @mikoajnowacki2788 Рік тому

    Lessons 32-35 were super useful!! Thank you

  • @vishalkrishnan1644
    @vishalkrishnan1644 4 роки тому

    Im so glad that i've learned something in this quarantine useful thank you Paul 😄

  • @ivandiazdeleon9368
    @ivandiazdeleon9368 6 років тому +1

    Keep them coming, you saved me. Great job, thanks a lot!

  • @erygion
    @erygion 5 років тому

    Thank you again for another great lesson Mr. Mcwhorter. I'm excited to be done with these and start your new arduino lessons. I appreciate the walkthrough. I'm going to join your patreon as soon as I can.

  • @michaelhawthorne8696
    @michaelhawthorne8696 3 роки тому

    I like this, using the Ampersand seems so easy to pass the parrameters back.
    Because of their position in the Void tally() function name (3rd and 4th) they match up with the position of the parameters in tally(a,b,c,d); so sum will reference to c and difference will reference to d
    Nice.
    Great information Paul, I would have found it time consuming to find that answer else where I think.
    Also because you're not using 'return;' the function type is again Void, please correct me if that last bit is incorrect.

  • @bagusharyadijogja689
    @bagusharyadijogja689 6 років тому +1

    It's amazing... Thank you Paul...

  • @gunarakulangunaretnam3353
    @gunarakulangunaretnam3353 6 років тому +7

    Hello, Mr.Paul McWhorter. I am a computer science student from Sri Lanka. I love your teaching method. I have watched all the tutorials in this playlist. i want to make a finger print door system for my campus. We are going to fix this finger print door system to class room doors. I need to implement the GSM module with it. for example if one student comes and places his finger, if his finger matches in the database. we need to open the door and also we need to send an SMS to his parent mobile phone. if the finger does not match in the database, the door does not have to open and we need to take a photo of the person who placed the finger in it. We need camera module also with the flash light. It uses the solenoid lock.
    FEATURES
    =========
    01. It should a have solenoid lock.
    02. if the finger matches in the database, we need to open the door and send an SMS to their guardian.
    03. If it doesn't we need to take a photo.
    Please please, cloud you please make a tutorial how to do it step by step. please.......
    I believe in you.
    Thank you so much Sir. I also thank you for the tutorials in this channel.

    • @deqdanandi6927
      @deqdanandi6927 6 років тому +1

      kuna rakulan how u want to kept the data in database. What system u use?

    • @gunarakulangunaretnam3353
      @gunarakulangunaretnam3353 6 років тому

      i do not want to keep the data in database.

    • @123kkambiz
      @123kkambiz 6 років тому

      check the following video. finger print sensor has backup to store the finger prints.
      ua-cam.com/video/aYUFmRckc_k/v-deo.html
      just search " arduino and finger print " you will get videos with the specification you requested.

    • @gunarakulangunaretnam3353
      @gunarakulangunaretnam3353 5 років тому

      @@123kkambiz thank you so much

  • @Tigs62
    @Tigs62 3 роки тому

    Hi Paul, Ignore the picture, that was me in my younger years!
    First of all, "thank you SOO much". I love your Arduino IDE videos. They are so much easier to understand than any others i have come across.
    The question: I have been looking at a number of projects for making clocks recently, and almost all of the code use the terms ++x or x++.
    For a long time i could not work out what it meant, until i found it in the arduino.cc webpage.
    x++; // increment x by one and returns the old value of x
    ++x; // increment x by one and returns the new value of x
    Your code is more "old school", using x=x+1, which in my opinion is the "proper" way to do it. But as i am 59 years old now, and was brought up with the original BASIC, i guess i would prefer your method. However, could you possibly create another video in the Arduino IDE series that covers this topic as clearly all the "young ones" out there are determined to use this newer syntax.
    There is also a - - x and x - - too (where will it all end).

  • @VasilisKarastergios
    @VasilisKarastergios 6 років тому +2

    Very well explained and thanks for sharing your knowledge with us, thought i don't get the same results like you do, the code looks identical to mine. I hope you can explain static and volatile variables in another video !

  • @byronnielsen8896
    @byronnielsen8896 5 років тому

    Thanks for the awesome videos, ou baas! You did a fantastic job explain these concepts to a complete noob. I will look forward to seeing more in the future!

  • @iocircuits
    @iocircuits 4 роки тому

    Great video Paul, thanks for the great work, very helpful.

  • @upulsanjaya
    @upulsanjaya 5 років тому

    all video waching.... best tutorial in arduino... thanks sir...!

  • @danthemancasey
    @danthemancasey 6 років тому

    Thank you as always for another thorough, and informative video!

  • @f.vandijk1252
    @f.vandijk1252 5 років тому

    You, sir, are very good at explaining the innards of this device to an old man (70).
    Can you speed up the date of your next series? I am now at lesson 9 and I'm worrying at reaching the end of lesson 35.
    Greetings from The Netherlands.

  • @togaplop
    @togaplop 4 роки тому

    Paul, Great job, but can you take this lesson a little further and tie in when to pass by value, when to pass by reference and when to use pointers for the arrays we just learned about?

  • @orhanyor
    @orhanyor 4 роки тому

    thank you for the video sir! by far the best lesson/explanation in youtube

  • @karamyounis15
    @karamyounis15 4 роки тому

    I hope there will be a future video explaining how to use created functions from one program into another. For example: creating a function that maps out the IR remote buttons properly in one function in program "a" and sending that data into a different program "b".

  • @antoniocarlosdaudfilho2401
    @antoniocarlosdaudfilho2401 4 роки тому

    Thank you Paul for your lessons! very useful!

  • @candrasniper3404
    @candrasniper3404 3 роки тому

    Thank you, sir! Your video has made my problem solved.

  • @bassman2162
    @bassman2162 3 роки тому

    The return is used to send back ONE value in the name of the function e.g. numSquared=sqr(num);
    //num unchanged
    If more than one variable needs to be sent back changed then use pass by reference.

  • @rileylitwiller8511
    @rileylitwiller8511 5 років тому

    Hi Paul, I am a very-soon-to-be mechanical engineer and have been doing a lot of project based learning with Arduinos. Thanks for all the helpful videos. One aspect of arduinos that I am having difficulty understanding is how the baud rate can affect or limit your sampling rate when using the analogRead() command for analog sensors and communicating the data through the serial monitor. For example, my understanding is that the default sampling rate for the analogRead() command with an arduino (16MHz clock speed and 10 bit ADC) is 9615 Hz, but if I set the baud rate for serial communication at anything below 9615 bits/sec * 10 bit ADC = 96150, won't the serial communication baud rate truly dictate the sampling rate instead of the arudinos built in ADC converter properties? Not sure if this is an area you have studied, but if you have any thoughts, I would be interested to hear what you have to say. Thanks

  • @nickbeal1352
    @nickbeal1352 5 років тому

    @paul mcwhorter Hello, is there a way to get a live camera feed and communicate with the instrument package near the edge of space?

  • @jackd6134
    @jackd6134 5 років тому

    H Paul Having an issue with the code as it does not pause to allow entering the second number. It looks correctly coded, but to be sure I went over to your website but can't find it. In fact, I cannot locate "Lesson 35" under "Arduino Lessons" as it stops at 33.

  • @kevalnakar6269
    @kevalnakar6269 2 роки тому +1

    Is local veriable saves memory or it faster than global one???

  • @nirajasanghai9707
    @nirajasanghai9707 3 роки тому

    Hello Sir,
    Your website doesn't open yet. Do you have any lessons on How to interface NRF24L01 with Arduino?

  • @padi6690
    @padi6690 5 років тому

    Thank you so much for your help.
    I’ll just implant this technique into my project.
    Didn’t hear this in school up to now.

    • @padi6690
      @padi6690 5 років тому

      ...and it works great! Thank you so much!!! 🙂👍

  • @TechnoAutomation
    @TechnoAutomation 6 років тому

    Thanks sir for this tutorial.
    I really wanted to know how to return multiple values from a function.
    & My waiting is over.
    Once again thanks a lot.
    &
    I learnt lots of Arduino coding techniques from your tutorial and used in my projects. Your techniques of explaining things are really good.
    & Waiting for next tutorial.

  • @paulpattyn9070
    @paulpattyn9070 4 роки тому +1

    " BOOM !!!" great teacher

  • @Bob-zg2zf
    @Bob-zg2zf 5 років тому

    In C++, & is called reference. It acts like a pointer, so & will change the value of a specific memory address, rather than only using the passed content for calculation. The 0/1 states of the transistors inside the CPU is changed by &.

  • @fares3651
    @fares3651 5 років тому +1

    yup, subbed as soon as I saw the cup of coffee :,)

    • @paulmcwhorter
      @paulmcwhorter  5 років тому

      Coffee . . . the elixir that fuels the high tech world

  • @yonkatz
    @yonkatz Рік тому

    Thanks a lot! I've been looking for a while how to do that and couldn't find. I tried to clean the code to have the function in a different tab (file) and it works.

  • @trialupload
    @trialupload 6 років тому +3

    Hey sir can u make
    E ink (coustome writable with stylus or anything ) device with arduino or raspberry pi?

  • @aeronca1946
    @aeronca1946 4 роки тому

    great explanation,keep it up

  • @cheblack677
    @cheblack677 4 роки тому

    Great, Sir.
    I want to move some functions to my own library I can use later and I need to know how to pass and get back variables that are not in the same file. The other problem that arises is how to keep variables from those functions alive after I call the functions. ( I receive a string on the serial port, any time I receive something on the port I call the function which is building the string, it adds to the string, check if the string is completed and if not returns to the main loop. If the string is completed, it breaks it to code and variables and returns them. Question is how to keep the string until it's completed(in the library function) and how to return the two variables(from the library function) afterward to the main program

  • @miottraja8162
    @miottraja8162 3 роки тому

    do you have some advice about use inkjet print head and Arduino? Thanks

  • @josephmarshall6598
    @josephmarshall6598 6 років тому

    Hi Mr. Paul! I have watched all of your videos and I love the way you teach. I can't wait for the next video!
    Would you please consider doing one on building a simple LCD menu system that would allow the user to scroll through the menu options and read data from variables. It seems that all examples I can find are menus that allow changes in parameters, or are so complicated that I can't wrap my head around it. When i look at the code examples I am so overwhelmed by it's complexity that I don't even want to try to understand it. There has to be a simpler solution. I'm probably just being lazy, but a simple example might help me understand the basic structure of these examples.
    Thank you! And don't stop teaching! :-)

  • @railcat7083
    @railcat7083 3 роки тому

    This lesson *very* helpful... good stuff!

  • @1958abc
    @1958abc 4 роки тому

    Hello SirThank you Sir for your kind help in understanding the working of Arduino ,written demonstration is nor readable in some cases due to poor focus.

  • @ericthered9655
    @ericthered9655 3 роки тому

    I'd really like to see examples that do not use the serial monitor as most projects will not use it. For example, how about a reading a POT value, setting it to a variable, and passing that along?

  • @chanlin1904
    @chanlin1904 4 роки тому

    Love all your lessons ( boom boom boom)

  • @bartmanpoet9067
    @bartmanpoet9067 3 роки тому +1

    What happened to the final code, written out so we can see where we made our mistakes? So we can fix them.

  • @johnpijnappel450
    @johnpijnappel450 6 років тому

    Hello, Mr.Paul McWhorter. Thank you very much for all the Arduino lessons. You can make things very clear. I like to ask you a question: What is the best method to do the following: I connected 6 sensors to the ports A1 to A6. I have to read the values (value1, value2,value3 etc) of those sensors. Can I do that in one function? a function like: for(i=1;i

  • @stigastondogg730
    @stigastondogg730 4 місяці тому

    Hi!
    I know this is an older video but hoping you or someone out there can answer.
    Can you do this with arrays as well?
    I wouldn’t know what to google search. Your video made me wonder if that was possible, especially like you said about multiple variables being manipulated in a function. Tried to look, but I don’t think I’m searching the correct terminology….
    Thanks. Great video btw.

  • @pallavighimire6809
    @pallavighimire6809 6 років тому +1

    Hello sir will you please upload a lesson for gsm with arduino

  • @soniccinos
    @soniccinos 6 місяців тому

    thanks for the complete explanation!!!

  • @tameraziz2104
    @tameraziz2104 4 роки тому

    Thank you Paul for all these nice videos.
    I followed you New Arduino Tutorials and also many of the old Arduino Lessons.
    They are all great ones...
    I have a question, please, is there a way to create function with optional arguments? I surfed the net and i didn't find a clear relevant answer.

  • @paulseidel5819
    @paulseidel5819 6 років тому

    Thanks Paul. I was not aware of this method. Is there a reason you prefer it of using a return statement. Return seems more readable to me.

    • @paulmcwhorter
      @paulmcwhorter  6 років тому +1

      Return will only send back one value. What if I need to work with several variables in one function? Returns are OK, but just my old habits, I like to more formally pass parameters back and forth like shown in this video.

  • @kamranibadov9415
    @kamranibadov9415 4 роки тому

    Thanky for wonderfull programming tips

  • @freytube1
    @freytube1 11 місяців тому

    love it is there is a good text book I can get for reference (OLD - retired basic , Fortran, PLC programming here) .. Need to learn something new

  • @tomaszpankowski8903
    @tomaszpankowski8903 Рік тому

    Thank you, I love your videos.

  • @nemanjapavlovic6365
    @nemanjapavlovic6365 5 років тому

    Hello Paul. Do you maybe have a tutorial on ESP8266-01 somewhere?
    I am having a really hard tim getting it to work. I can not find any tutorials as good as yours.

  • @misterdroidma
    @misterdroidma 5 років тому

    Hello Doctor Aduino I love your lessons , but i need your help
    I have 1 principal websocket function and 2 independant secondary fonctions ( firebase+ time) I want to return int (hour+ minutes receive by firebase) + (hour+ minutes of time ) to the websocket function
    how to do that i have try your example but did not work

  • @inayathussain9236
    @inayathussain9236 6 років тому

    Sir I'm from j&k india. I love this series of lectures. Please upload some videos on esp8266 wifi module.

  • @vincenthavenga9569
    @vincenthavenga9569 6 років тому

    Hi Paul great work on all your videos. I have really learned a lot. Can you please do a tutorial on Q learning.I have a robot that i am building and have some sample code, but i am trying to make sense of how the values are passed back and forth.Thank you so much.

  • @sanderromer6490
    @sanderromer6490 5 років тому

    Absolutely excellent!

  • @ShamboNaskar
    @ShamboNaskar 4 роки тому +1

    Sir, please make a tutorial on SPI and I2C.

  • @michelfeuiltault4013
    @michelfeuiltault4013 4 роки тому

    it makes a lot of sense and will practice

  • @SecVo
    @SecVo 2 роки тому

    Hello Paul, Can you please make a video on how to control Brushless Motors with Arduino?
    Your Vids are really easy to follow :)

  • @rayyankhan4737
    @rayyankhan4737 2 роки тому

    i was building an obstacle avoidance car and it was realy hard to write the code for each left ,right ,front turns again and again and functions helped ,me alot

  • @normandbouchard7004
    @normandbouchard7004 6 років тому +1

    How come the function Tally has void in front of it even though it returns a value? Isn't void used when no value is to be returned? I'm confused.

    • @fphenix
      @fphenix 6 років тому +1

      The function did not return anything, as a matter of fact it didn't even finish by 'return' so indeed it is a void function. The way values were "returned" in this case is actually by passing the memory addresses of c and d through sum and difference using that & symbol. Since for instance c and sum now share the same memory address, any modification made to sum within the function will also affect c in the main loop. Nothing is returned.

  • @pandulathennakoon3826
    @pandulathennakoon3826 5 років тому

    Hello sir, I learnt a lot from your videos. It would be very helpful if u can make few videos about wireless communication on arduino. Thanks.

  • @Davethe1979
    @Davethe1979 5 років тому +1

    Where did you go? I hope everything is ok. I hope you make some more videos.

    • @paulmcwhorter
      @paulmcwhorter  5 років тому +3

      Been really busy and hope to find time to make more videos. Would like to do more Arduino stuff, taking into account changes in hardware and IDE since I made the first ones.

    • @raymondmichael4987
      @raymondmichael4987 5 років тому

      @@paulmcwhorter , we're starving here. Please be well and find time sir
      Greetings from Tanzania

  • @tunckuyel
    @tunckuyel 4 роки тому

    Hello, i like your videos. they are very helpful for me. Only one suggestion: I practice and learn at night time and please don't do boom. because i setup the volume just right and suddenly you do boom. :) I can't decrease the volume and everybody wakes up and angry. Or volume is too low for my hearing. Thank you for your helpful videos.

  • @jonathanmekano6700
    @jonathanmekano6700 5 років тому

    Hi Paul I need your help with arduino. I am trying to program a servo

  • @lucabarbagallo7313
    @lucabarbagallo7313 6 років тому

    Thank you!!
    I was confused about parameters