Strobe doesn't need to know the universe that it's receiving.
This commit is contained in:
parent
b5e58743e4
commit
76d4847b8c
@ -51,8 +51,7 @@ uint32_t dr_to_micros(uint8_t dmx) {
|
||||
/*
|
||||
Constructor
|
||||
*/
|
||||
Strobe::Strobe(uint16_t universe, uint16_t address) {
|
||||
m_universe = universe;
|
||||
Strobe::Strobe(uint16_t address) {
|
||||
m_address = address;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ typedef enum {
|
||||
|
||||
class Strobe {
|
||||
public:
|
||||
Strobe(uint16_t universe = 1, uint16_t address = 1);
|
||||
Strobe(uint16_t address = 1);
|
||||
|
||||
bool begin(uint8_t pin, uint8_t pwm); // call in setup()
|
||||
static void update(void * param); // update task
|
||||
@ -49,7 +49,6 @@ class Strobe {
|
||||
void recvData(e131_packet_t *packet); // data recieved callback
|
||||
|
||||
private:
|
||||
uint16_t m_universe; // sACN universe
|
||||
uint16_t m_address; // DMX address
|
||||
|
||||
uint16_t m_int; // state machine intensity
|
||||
|
Loading…
Reference in New Issue
Block a user