support > 170 leds with E1.31 (#189)

* Add support for > 170 leds. These are send as multiple packets
Change default latchtime to be smaller

* code cleanup

* more code tidying
added *.swp to gitignore
This commit is contained in:
penfold42
2016-08-21 06:39:21 +10:00
committed by redPanther
parent 27eb314b1c
commit c8318ff0c7
4 changed files with 56 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ typedef union {
#define E131_E131_UNIVERSE_DISCOVERY_INTERVAL 10 // seconds
#define E131_NETWORK_DATA_LOSS_TIMEOUT 2500 // milli econds
#define E131_DISCOVERY_UNIVERSE 64214
#define DMX_MAX 512 // 512 usable slots
///
/// Implementation of the LedDevice interface for sending led colors via udp/E1.31 packets
@@ -121,6 +121,8 @@ public:
virtual int switchOff();
private:
void prepare(const unsigned this_universe, const unsigned this_dmxChannelCount);
e131_packet_t e131_packet;
uint8_t _e131_seq = 0;
uint8_t _e131_universe = 1;