Library for led
RGB LED library
users/gimohd/code/LED/
[Not found]
lib/PoliceLight.h@0:5368b27ca9d0, 2015-12-10 (annotated)
- Committer:
- gimohd
- Date:
- Thu Dec 10 15:06:29 2015 +0000
- Revision:
- 0:5368b27ca9d0
publis library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gimohd | 0:5368b27ca9d0 | 1 | |
gimohd | 0:5368b27ca9d0 | 2 | #ifndef POLICELIGHT_H |
gimohd | 0:5368b27ca9d0 | 3 | #define POLICELIGHT_H |
gimohd | 0:5368b27ca9d0 | 4 | |
gimohd | 0:5368b27ca9d0 | 5 | #include "Effect.h" |
gimohd | 0:5368b27ca9d0 | 6 | #include "PoliceLight.h" |
gimohd | 0:5368b27ca9d0 | 7 | #include "RGB.h" |
gimohd | 0:5368b27ca9d0 | 8 | #include "Color.h" |
gimohd | 0:5368b27ca9d0 | 9 | |
gimohd | 0:5368b27ca9d0 | 10 | class PoliceLight : public Effect { |
gimohd | 0:5368b27ca9d0 | 11 | public: |
gimohd | 0:5368b27ca9d0 | 12 | /** Creates an effect named PoliceLight |
gimohd | 0:5368b27ca9d0 | 13 | * |
gimohd | 0:5368b27ca9d0 | 14 | * @param led An instance of the led class |
gimohd | 0:5368b27ca9d0 | 15 | */ |
gimohd | 0:5368b27ca9d0 | 16 | PoliceLight(RGB* led); |
gimohd | 0:5368b27ca9d0 | 17 | /** Runs the policelight effect |
gimohd | 0:5368b27ca9d0 | 18 | */ |
gimohd | 0:5368b27ca9d0 | 19 | void run(); |
gimohd | 0:5368b27ca9d0 | 20 | |
gimohd | 0:5368b27ca9d0 | 21 | }; |
gimohd | 0:5368b27ca9d0 | 22 | |
gimohd | 0:5368b27ca9d0 | 23 | #endif |