Advertisement
Ruslan_nig

Arduino function example

Dec 19th, 2018
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int funSum (int a, int b)
  2. {
  3.   int c = a+b;
  4.   return c;
  5.  
  6. }
  7.  
  8. void setup (){
  9. Serial.begin (9600);
  10. Serial.println ("Function result:");
  11. Serial.print(funSum(2,3));
  12. }
  13. void loop(){
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement