SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
#212497
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);

-Jeremy
#212531
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)
to DMXSerial.begin(DMXSPEED, DMXFORMAT))
 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? [...]