GMU:Functions and Classes (Arduino): Difference between revisions

From Medien Wiki
Line 70: Line 70:




==Classes are Data-types==
===Classes are Data-types===


We can use our „Motor“ - class the same way we are using other data - types (int, long, float).
We can use our „Motor“ - class the same way we are using other data - types (int, long, float).
Line 79: Line 79:
Motor rightMotor; //  declare another object of the type „Motor“ called „rightMotor“  
Motor rightMotor; //  declare another object of the type „Motor“ called „rightMotor“  
''
''


==Calling inner functions of a class (Methods)==
==Calling inner functions of a class (Methods)==