I'm just getting started with this and am stumbling thru getting the Arduino environment setup.
I cloned this library and when trying to compile the example sketch, I get the following errors:
Arduino: 1.8.10 (Linux), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
/home/schneis/arduino-1.8.10/libraries/espDMX/espDMX.cpp: In function 'dmx_t* dmx_init(int, int)':
/home/schneis/arduino-1.8.10/libraries/espDMX/espDMX.cpp:246:45: error: invalid conversion from 'void*' to 'fp_putc_t {aka void (*)(char)}' [-fpermissive]
ets_install_putc1((void *) &uart_ignore_char);
^
In file included from /home/schneis/.arduino15/packages/esp8266/hardware/esp8266/2.6.2/cores/esp8266/pgmspace.h:11:0,
from /home/schneis/.arduino15/packages/esp8266/hardware/esp8266/2.6.2/cores/esp8266/Arduino.h:239,
from /home/schneis/arduino-1.8.10/libraries/espDMX/espDMX.cpp:21:
/home/schneis/.arduino15/packages/esp8266/hardware/esp8266/2.6.2/tools/sdk/include/ets_sys.h:219:6: error: initializing argument 1 of 'void ets_install_putc1(fp_putc_t)' [-fpermissive]
void ets_install_putc1(fp_putc_t routine);
^
Multiple libraries were found for "espDMX.h"
Used: /home/schneis/arduino-1.8.10/libraries/espDMX
exit status 1
Error compiling for board Generic ESP8266 Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The following patch seems to resolve the issue:
--- espDMX/espDMX.cpp.orig 2019-12-10 00:59:35.119923699 -0800
+++ espDMX/espDMX.cpp 2019-12-10 01:10:01.115088501 -0800
@@ -242,7 +242,7 @@
}
system_set_os_print(0);
- ets_install_putc1((void *) &uart_ignore_char);
+ ets_install_putc1(&uart_ignore_char);
// Initialize variables
dmx->dmx_nr = dmx_nr;
I'm just getting started with this and am stumbling thru getting the Arduino environment setup.
I cloned this library and when trying to compile the example sketch, I get the following errors:
The following patch seems to resolve the issue: