| ... | ... | @@ -29,6 +29,7 @@ In it, create a file called `SimpleLed.h` and write: |
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Header guards : alternativeley use "#pragma once"
|
|
|
|
#ifndef SIMPLE_LED_H
|
|
|
|
#define SIMPLE_LED_H
|
|
|
|
|
| ... | ... | @@ -68,6 +69,7 @@ class SimpleLed |
|
|
|
|
|
|
|
protected:
|
|
|
|
// Nothing here
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool state;
|
|
|
|
|
| ... | ... | |