Add WiFi setup QR to ESP32 displays
This commit is contained in:
1 parent
8ef309a299
commit
1264f62e9d
11 files changed
+165
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
// DISPLAY_CLASS is supplied as a build token (for example SSD1306Display).
|
||||
// Convert it to a boolean that shared ESP32 code can use without including a
|
||||
// concrete driver. Undefined identifiers evaluate to zero in a #if expression.
|
||||
#define MESHCORE_NULL_DISPLAY_CLASS_NullDisplayDriver 1
|
||||
#define MESHCORE_DISPLAY_TOKEN_JOIN_INNER(prefix, name) prefix##name
|
||||
#define MESHCORE_DISPLAY_TOKEN_JOIN(prefix, name) \
|
||||
MESHCORE_DISPLAY_TOKEN_JOIN_INNER(prefix, name)
|
||||
|
||||
#if defined(DISPLAY_CLASS) \
|
||||
&& !MESHCORE_DISPLAY_TOKEN_JOIN(MESHCORE_NULL_DISPLAY_CLASS_, DISPLAY_CLASS)
|
||||
#define MESHCORE_HAS_REAL_DISPLAY 1
|
||||
#endif
|
||||
|
||||
#undef MESHCORE_DISPLAY_TOKEN_JOIN
|
||||
#undef MESHCORE_DISPLAY_TOKEN_JOIN_INNER
|
||||
#undef MESHCORE_NULL_DISPLAY_CLASS_NullDisplayDriver
|
||||
Reference in new issue
Block a user