mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
PRE-RELEASE artnet fix & binaries
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
11366
compiled/nrf52840-5500
11366
compiled/nrf52840-5500
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -52,8 +52,8 @@ volatile unsigned long D_checkT=0;
|
|||||||
#ifdef _artnet
|
#ifdef _artnet
|
||||||
#include <Artnet.h>
|
#include <Artnet.h>
|
||||||
Artnet *artnet = NULL;
|
Artnet *artnet = NULL;
|
||||||
uint8_t artnetMinCh=1;
|
uint16_t artnetMinCh=1;
|
||||||
uint8_t artnetMaxCh=512;
|
uint16_t artnetMaxCh=512;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -337,9 +337,13 @@ void DMXOUT_propagate()
|
|||||||
void artnetSetup()
|
void artnetSetup()
|
||||||
{
|
{
|
||||||
#ifdef _artnet
|
#ifdef _artnet
|
||||||
if (!artnet) artnet = new Artnet;
|
if (!artnet)
|
||||||
// this will be called for each packet received
|
{
|
||||||
if (artnet) artnet->setArtDmxCallback(onDmxFrame);
|
artnet = new Artnet;
|
||||||
|
artnet->begin();
|
||||||
|
// this will be called for each packet received
|
||||||
|
if (artnet) artnet->setArtDmxCallback(onDmxFrame);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1346,6 +1346,8 @@ if (ethClient.connected())
|
|||||||
ethClient.stop(); //Refresh MQTT connection
|
ethClient.stop(); //Refresh MQTT connection
|
||||||
lanStatus=IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER;
|
lanStatus=IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER;
|
||||||
}
|
}
|
||||||
|
if (lanStatus == OPERATION_NO_MQTT) lanStatus=IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER;
|
||||||
|
|
||||||
configLocked--;
|
configLocked--;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1376,6 +1378,8 @@ void printConfigSummary() {
|
|||||||
infoSerial<<F("\nArtnet ");
|
infoSerial<<F("\nArtnet ");
|
||||||
printBool(artnet);
|
printBool(artnet);
|
||||||
#endif
|
#endif
|
||||||
|
infoSerial<<F("\nMQTT ");
|
||||||
|
printBool(mqttArr);
|
||||||
|
|
||||||
infoSerial << endl;
|
infoSerial << endl;
|
||||||
infoSerial<<F("RAM=")<<freeRam()<<endl;
|
infoSerial<<F("RAM=")<<freeRam()<<endl;
|
||||||
|
|||||||
@@ -602,6 +602,7 @@ extra_scripts = extra_script.py
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
;upload_port = net:192.168.88.2:23000
|
;upload_port = net:192.168.88.2:23000
|
||||||
build_flags = !python get_build_flags.py mega2560-5100
|
build_flags = !python get_build_flags.py mega2560-5100
|
||||||
|
_upload_command = custom-build-flags/upload_mega2560-5100 $SOURCE
|
||||||
lib_ignore =
|
lib_ignore =
|
||||||
;DS2482_OneWire //UNCOMMENT for software 1-wire driver
|
;DS2482_OneWire //UNCOMMENT for software 1-wire driver
|
||||||
DHT sensor library for ESPx
|
DHT sensor library for ESPx
|
||||||
|
|||||||
Reference in New Issue
Block a user