Skip to content

Commit bad83bc

Browse files
authored
Add ZeDMD WiFi support (#49)
1 parent 2f50768 commit bad83bc

File tree

16 files changed

+89
-34
lines changed

16 files changed

+89
-34
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ The "paused" connections aren't really paused. Their data is still accepted but
170170
171171
```ini
172172
[DMDServer]
173-
# The address (interface) to listen for TCP connections.
174-
Addr = localhost
173+
# Address (interface) to bind for incoming connections
174+
# Use 0.0.0.0 to accept connections from external devices on all interfaces
175+
Addr = 127.0.0.1
175176
# The port to listen for TCP connections.
176177
Port = 6789
177178
# Set to 1 if Serum colorization should be used, 0 if not.
@@ -204,6 +205,14 @@ Brightness = -1
204205
# Set to 1 to permantenly store the overwritten settings above in ZeDMD internally.
205206
SaveSettings = 0
206207
208+
[ZeDMD-WiFi]
209+
# Set to 1 if ZeDMD-WiFi is available.
210+
Enabled = 0
211+
# Enter your ZeDMD WiFi IP address here
212+
WiFiAddr =
213+
# Set the ZeDMD WiFi Port number, you can leave this empty and it will default to 3333
214+
WiFiPort = 3333
215+
207216
[Pixelcade]
208217
# Set to 1 if Pixelcade is attached
209218
Enabled = 1

dmdserver.ini

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
[DMDServer]
3-
# The address (interface) to listen for TCP connections.
4-
Addr = localhost
3+
# Address (interface) to bind for incoming connections
4+
# Use 0.0.0.0 to accept connections from external devices on all interfaces
5+
Addr = 127.0.0.1
56
# The port to listen for TCP connections.
67
Port = 6789
78
# Set to 1 if Serum colorization should be used, 0 if not.
@@ -34,6 +35,14 @@ Brightness = -1
3435
# Set to 1 to permantenly store the overwritten settings above in ZeDMD internally.
3536
SaveSettings = 0
3637

38+
[ZeDMD-WiFi]
39+
# Set to 1 if ZeDMD-WiFi is available.
40+
Enabled = 0
41+
# Enter your ZeDMD WiFi IP address here
42+
WiFiAddr =
43+
# Set the ZeDMD WiFi Port number, you can leave this empty and it will default to 3333
44+
WiFiPort = 3333
45+
3746
[Pixelcade]
3847
# Set to 1 if Pixelcade is attached
3948
Enabled = 1

include/DMDUtil/Config.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ class DMDUTILAPI Config
6262
void SetZeDMDBrightness(int brightness) { m_zedmdBrightness = brightness; }
6363
bool IsZeDMDSaveSettings() const { return m_zedmdSaveSettings; }
6464
void SetZeDMDSaveSettings(bool saveSettings) { m_zedmdSaveSettings = saveSettings; }
65+
bool IsZeDMDWiFiEnabled() const { return m_zedmdWiFiEnabled; }
66+
void SetZeDMDWiFiEnabled(bool WiFiEnabled) { m_zedmdWiFiEnabled = WiFiEnabled; }
67+
const char* GetZeDMDWiFiAddr() const { return m_zedmdWiFiAddr.c_str(); }
68+
void SetZeDMDWiFiAddr(const char* ipaddr) { m_zedmdWiFiAddr = ipaddr; }
69+
int GetZeDMDWiFiPort() const { return m_zedmdWiFiPort; }
70+
void SetZeDMDWiFiPort(int port) { m_zedmdWiFiPort = port; }
6571
bool IsPixelcade() const { return m_pixelcade; }
6672
void SetPixelcade(bool pixelcade) { m_pixelcade = pixelcade; }
6773
void SetPixelcadeDevice(const char* port) { m_pixelcadeDevice = port; }
@@ -101,6 +107,9 @@ class DMDUTILAPI Config
101107
int m_zedmdRgbOrder;
102108
int m_zedmdBrightness;
103109
bool m_zedmdSaveSettings;
110+
bool m_zedmdWiFiEnabled;
111+
std::string m_zedmdWiFiAddr;
112+
int m_zedmdWiFiPort;
104113
bool m_dmdServer;
105114
std::string m_dmdServerAddr;
106115
int m_dmdServerPort;

include/DMDUtil/DMDUtil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#define DMDUTIL_VERSION_MAJOR 0 // X Digits
44
#define DMDUTIL_VERSION_MINOR 7 // Max 2 Digits
5-
#define DMDUTIL_VERSION_PATCH 0 // Max 2 Digits
5+
#define DMDUTIL_VERSION_PATCH 1 // Max 2 Digits
66

77
#define _DMDUTIL_STR(x) #x
88
#define DMDUTIL_STR(x) _DMDUTIL_STR(x)

platforms/android/arm64-v8a/external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CARGS_SHA=5949a20a926e902931de4a32adaad9f19c76f251
6-
LIBZEDMD_SHA=927a519efcff79f9876fecb9d5a04c9ba5fc2348
6+
LIBZEDMD_SHA=a7c9ba92d1ca3418ff3d93b2f99a62f60e99d672
77
LIBSERUM_SHA=5329017fe093ecd46e382c3fd7f08da0c5b84797
88
SOCKPP_SHA=e6c4688a576d95f42dd7628cefe68092f6c5cd0f
99
LIBPUPDMD_SHA=124f45e5ddd59ceb339591de88fcca72f8c54612

platforms/ios-simulator/arm64/external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CARGS_SHA=5949a20a926e902931de4a32adaad9f19c76f251
6-
LIBZEDMD_SHA=927a519efcff79f9876fecb9d5a04c9ba5fc2348
6+
LIBZEDMD_SHA=a7c9ba92d1ca3418ff3d93b2f99a62f60e99d672
77
LIBSERUM_SHA=5329017fe093ecd46e382c3fd7f08da0c5b84797
88
SOCKPP_SHA=e6c4688a576d95f42dd7628cefe68092f6c5cd0f
99
LIBPUPDMD_SHA=124f45e5ddd59ceb339591de88fcca72f8c54612

platforms/ios/arm64/external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CARGS_SHA=5949a20a926e902931de4a32adaad9f19c76f251
6-
LIBZEDMD_SHA=927a519efcff79f9876fecb9d5a04c9ba5fc2348
6+
LIBZEDMD_SHA=a7c9ba92d1ca3418ff3d93b2f99a62f60e99d672
77
LIBSERUM_SHA=5329017fe093ecd46e382c3fd7f08da0c5b84797
88
SOCKPP_SHA=e6c4688a576d95f42dd7628cefe68092f6c5cd0f
99
LIBPUPDMD_SHA=124f45e5ddd59ceb339591de88fcca72f8c54612

platforms/linux/aarch64/external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CARGS_SHA=5949a20a926e902931de4a32adaad9f19c76f251
6-
LIBZEDMD_SHA=927a519efcff79f9876fecb9d5a04c9ba5fc2348
6+
LIBZEDMD_SHA=a7c9ba92d1ca3418ff3d93b2f99a62f60e99d672
77
LIBSERUM_SHA=5329017fe093ecd46e382c3fd7f08da0c5b84797
88
SOCKPP_SHA=e6c4688a576d95f42dd7628cefe68092f6c5cd0f
99
LIBPUPDMD_SHA=124f45e5ddd59ceb339591de88fcca72f8c54612

platforms/linux/x64/external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CARGS_SHA=5949a20a926e902931de4a32adaad9f19c76f251
6-
LIBZEDMD_SHA=927a519efcff79f9876fecb9d5a04c9ba5fc2348
6+
LIBZEDMD_SHA=a7c9ba92d1ca3418ff3d93b2f99a62f60e99d672
77
LIBSERUM_SHA=5329017fe093ecd46e382c3fd7f08da0c5b84797
88
SOCKPP_SHA=e6c4688a576d95f42dd7628cefe68092f6c5cd0f
99
LIBPUPDMD_SHA=124f45e5ddd59ceb339591de88fcca72f8c54612

platforms/macos/arm64/external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CARGS_SHA=5949a20a926e902931de4a32adaad9f19c76f251
6-
LIBZEDMD_SHA=927a519efcff79f9876fecb9d5a04c9ba5fc2348
6+
LIBZEDMD_SHA=a7c9ba92d1ca3418ff3d93b2f99a62f60e99d672
77
LIBSERUM_SHA=5329017fe093ecd46e382c3fd7f08da0c5b84797
88
SOCKPP_SHA=e6c4688a576d95f42dd7628cefe68092f6c5cd0f
99
LIBPUPDMD_SHA=124f45e5ddd59ceb339591de88fcca72f8c54612

0 commit comments

Comments
 (0)