Example of bearbones class

Dependents:   ExampleCLasses

Committer:
zer044
Date:
Tue Sep 26 08:43:25 2017 +0000
Revision:
0:809707a63c26
Initial Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
zer044 0:809707a63c26 1 #include "mbed.h"
zer044 0:809707a63c26 2
zer044 0:809707a63c26 3 class ClassyClass
zer044 0:809707a63c26 4 {
zer044 0:809707a63c26 5
zer044 0:809707a63c26 6 public:
zer044 0:809707a63c26 7 //Constructor Definition
zer044 0:809707a63c26 8 ClassyClass();
zer044 0:809707a63c26 9
zer044 0:809707a63c26 10 //define destructors
zer044 0:809707a63c26 11 ~ClassyClass();
zer044 0:809707a63c26 12
zer044 0:809707a63c26 13 //Add Function headers here
zer044 0:809707a63c26 14 void setLEDstate(int state);
zer044 0:809707a63c26 15
zer044 0:809707a63c26 16
zer044 0:809707a63c26 17
zer044 0:809707a63c26 18
zer044 0:809707a63c26 19
zer044 0:809707a63c26 20 private:
zer044 0:809707a63c26 21 //Add all private variables/Objects here only ClassyClass can see these
zer044 0:809707a63c26 22
zer044 0:809707a63c26 23 //Essentially global to this Class
zer044 0:809707a63c26 24 int imprivate;
zer044 0:809707a63c26 25
zer044 0:809707a63c26 26 DigitalOut ledy2_(p9);
zer044 0:809707a63c26 27
zer044 0:809707a63c26 28 };
zer044 0:809707a63c26 29