mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 04:09:49 +03:00
Many portation and conditional compilation directives added, Modbus refactored and moved to almost original lib, MQTT server,port,user,password configuration added to JSON
This commit is contained in:
33
options.h
Normal file
33
options.h
Normal file
@@ -0,0 +1,33 @@
|
||||
// Configuration of drivers enabled
|
||||
#define _dmxin
|
||||
#define _dmxout
|
||||
#define _owire
|
||||
#define _modbus
|
||||
#define _artnet
|
||||
|
||||
|
||||
#if defined(__AVR__)
|
||||
//All options available
|
||||
#define modbusSerial Serial2
|
||||
#endif
|
||||
|
||||
#if defined(__SAM3X8E__)
|
||||
/// DMX not deployed yet
|
||||
#undef _dmxin
|
||||
//#undef _dmxout
|
||||
#define modbusSerial Serial2
|
||||
//#include <DmxDue.h>
|
||||
#define dmxout DmxDue4
|
||||
#define dmxin DmxDue1
|
||||
#endif
|
||||
|
||||
#if defined(ESP_PLATFORM)
|
||||
#undef _dmxin
|
||||
#undef _dmxout
|
||||
//#undef _modbus
|
||||
#define modbusSerial Serial
|
||||
#endif
|
||||
|
||||
#ifndef _dmxout
|
||||
#undef _artnet
|
||||
#endif
|
||||
Reference in New Issue
Block a user