Arduino Tutorial - Methods Pt 2 - passing variables to a method

preview_player
Показать описание
The second video of a 3 part series on using Methods in C for the arduino. You will hear some people refer to a method as a function, sub-routine, or sometimes a procedure. In this video we will be showing how to pass a variable to a method. If you haven't seen part 1 please check it out, we show you how to create and call a method, and in part 3 we will be returning a variable from a method.
Рекомендации по теме
Комментарии
Автор

coOL....learning finer details of declared integer variables from this video I didn't see before.
..now .onto Pt 3

dalek
Автор

thanks for posting, helpful and simple.

garymaya
Автор

In the beginning if we define int y (like int x) as a global variable; testmethod function does not recognise y as a variable; so we can't write it as testmethod(y); but when we write as testmethod (int y) it is OK. However it recognise int x when we write testmethod(x) in loop. Why?

bariscakmur
Автор

well down methods / subroutines lessons

freytube