SparkFun DMX Examples not working

Hi! I’m missing something and I don’t know what, so I thought I’d give it a go here. Although I’m a software developer, it’s my first time playing around with the ESP32 or development boards in general, so bear with me :slight_smile:

I’ve bought the SparkFun Thing Plus and SparkFun ESP32 Thing Plus DMX to LED Shield in an attempt to do some stuff with DMX lighting. I got the SparkFun Thing Plus examples (light blinking, bluetooth connection) to work perfectly, so I know I have my Arduino IDE and connection to my board setup right.

Next step for me is to try and get one of the examples from sparkfun/SparkFunDMX to work, but here I’m running into issues quickly. I’ve added the libraries according to SparkFun ESP32 DMX to LED Shield - SparkFun Learn and I’ve put Example 1 - DMX Output in Arduino IDE. I’m trying to just verify the code, but I quickly run into errors not in my code but having to do with HardwareSerial used by the SparkfunDMX code. I’ll put the errors below. I’m a bit lost as to whether I’m missing a step, whether these errors could be caused due to version mismatches between the libraries used or whether there’s a whole different cause. I hope anyone can give me a push into the right direction.

c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp: In member function 'void SparkFunDMX::setComDir(bool)':
c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp:55:28: error: no matching function for call to 'HardwareSerial::flush(bool)'
     _dmxSerial->flush(false);
                            ^
In file included from C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/Arduino.h:154:0,
                 from c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.h:19,
                 from c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp:17:
C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/HardwareSerial.h:65:10: note: candidate: virtual void HardwareSerial::flush()
     void flush(void);
          ^
C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/HardwareSerial.h:65:10: note:   candidate expects 0 arguments, 1 provided
c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp: In member function 'bool SparkFunDMX::update()':
c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp:150:36: error: no matching function for call to 'HardwareSerial::flush(bool)'
             _dmxSerial->flush(false);
                                    ^
In file included from C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/Arduino.h:154:0,
                 from c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.h:19,
                 from c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp:17:
C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/HardwareSerial.h:65:10: note: candidate: virtual void HardwareSerial::flush()
     void flush(void);
          ^
C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/HardwareSerial.h:65:10: note:   candidate expects 0 arguments, 1 provided
c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp:155:50: error: no matching function for call to 'HardwareSerial::read(uint8_t [513], uint16_t&)'
         _dmxSerial->read(_dmxBuffer, _numChannels);
                                                  ^
In file included from C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/Arduino.h:154:0,
                 from c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.h:19,
                 from c:\Users\Tim\Documents\Arduino\libraries\SparkFun_DMX_Shield_Library\src\SparkFunDMX.cpp:17:
C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/HardwareSerial.h:64:9: note: candidate: virtual int HardwareSerial::read()
     int read(void);
         ^
C:\Users\Tim\AppData\Local\Arduino15\packages\SparkFun\hardware\esp32\1.0.1\cores\esp32/HardwareSerial.h:64:9: note:   candidate expects 0 arguments, 2 provided
exit status 1

Compilation error: exit status 1

In case it’s relevant, here’s some versions:

Libraries:

  • ArtnetWifi: 1.6.1
  • ESP32Servo: 3.0.9
  • Sparkfun DMX Shield Library: 3.0.1

Boards:

  • Sparkfun ESP32 Boards: 1.0.1