SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
What prevents the SparkFun ESP32 Thing Plus DMX to LED Shield from being used with non-ESP32 Thing Pluses (ie SAMD51 or Artemis)?

I get the following error when compiling the Example 1 DMXOutput code with AMD51 and with Artemis Thing Pluses

error: no matching function for call to 'HardwareSerial::HardwareSerial(int)'
HardwareSerial DMXSerial(2);

Given the ESP32 capabilities the library for serial connections are build around HardwareSerial. So is 'Serial' defined as HardwareSerial(0), Serial1 as HardwareSerial(1). The RX/TX pins for serial connection can be assigned to nearly any pin.

I had look at the library to see whether it would be as easy as define DMXSerial as Serial2 but it requires more changes on a couple of places:
DMXSerial.begin(DMXSPEED, DMXFORMAT, rxPin, txPin)

I use an ESP32 Thing Plus board and a DMX shield.
I tried to read the input from a DMX table but without success.
I used the arduino library but got this first error : U2TXD_OUT_IDX not defined.
So I replaced the variable in the code by this : U0TXD_OUT_IDX. The code uploaded well.
Nevertheless, when I try to read a channel the value is always 0.

Do you have any idea how to solve this issue?

Thank you in advance.

 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]