![](/media/cache/profiles/c3d4543d921d3fc90cabc2c864c68276.jpg.50x50_q85.jpg)
Conceito de Classe (Private Public),
Diff: Car.h
- Revision:
- 2:f8dd6b50073a
diff -r 371785ebad41 -r f8dd6b50073a Car.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Car.h Tue Aug 04 14:14:54 2015 +0000 @@ -0,0 +1,24 @@ +#ifndef CAR_MACRO_H +#define CAR_MACRO_H + +#include "mbed.h" + + + +class Car{ + + private: + uint32_t speed; + + public: + uint32_t getSpeed(void); + void setSpeed(uint32_t); + + void turnRight(void); + void turnLeft(void); + void goStraight(void); + + }; + + +#endif \ No newline at end of file