Arduino Tutorial - Methods Pt3 - Returning a variable from a method

preview_player
Показать описание
Arduino tutorial showing how to return a variable from a method. This is part 3 of a three part series on methods.
Рекомендации по теме
Комментарии
Автор

The way you explained this makes this SO EASY! I have been struggling with Arduino's web-site and Googling various "help forums" for two hours. Everyone is posting confusing information, or only half the code. After viewing this clip, I fixed my code in three minutes. Thank you.

oxenforde
Автор

thanks a lot for making things so easy to understand

lalitvishwakarma
Автор

The "random numbers" appear to be not so random tho... They're coming in the exact sequence as they were in pt. 2...

Costinmusca
Автор

Simple and very well explained, thanks for the tutorial ;)

Dexter.amr
Автор

can you return multi variables from one method / subroutine? thnaks

freytube
Автор

how would you imbed this into your loop? when i try it says you can't because it returns void. Then I tried creating a integer method as you did INSIDE the loop, and it still didn't work.

aspenmallery