projectwerk
Dependencies: NeoPixelString SimplyLog
Fork of NeoPixelI2cSlave by
Diff: neopixel_i2c_daemon.h
- Revision:
- 3:02931c2b1e82
- Parent:
- 2:e0269262d1f2
--- a/neopixel_i2c_daemon.h Sun Oct 25 11:36:21 2015 +0000 +++ b/neopixel_i2c_daemon.h Sat Jan 09 13:10:19 2016 +0000 @@ -1,13 +1,12 @@ #pragma once - #include "i2c_device.h" #include "neopixel_string.h" #include <vector> - -enum I2cCommand { OFF = 0x01, DIAGNOSTIC = 0x02, SINGLE_COLOR = 0x03 }; - +#include "strobe.h" +enum I2cCommand { OFF = 0x01, DIAGNOSTIC = 0x02, SINGLE_COLOR = 0x03, STROBO = 0x04 }; +class Strobe; +class Licht; class NeoPixelI2cDaemon { - private: I2cDevice * i2c; std::vector<NeoPixelString *> pixelstrings; @@ -18,6 +17,7 @@ NeoPixelI2cDaemon(I2cDevice * i2c, PinName alive_pin); public: + Strobe * hanzi; void attachPixelString(NeoPixelString * pixelstring); void listen(bool blocking); void allOff(void);