mathertel / DMXSerial

An Arduino library for sending and receiving DMX packets.
BSD 3-Clause "New" or "Revised" License
337 stars 79 forks source link

DMXSerial.h with Arduino MEGA2560 #52

Closed MikeWDale closed 3 years ago

MikeWDale commented 3 years ago

You kindly directed me to your blog page. Unfortunately I do not know how to uncomment the line

define DMX_USE_PORT1

I assume this is a line in DMXSerial.h The Arduino IDE will not open .h files, only .ino and .pde files Please tell me how to do this.

MikeWDale commented 3 years ago

I have worked out that I cn open files with a text editor but still unable to find where to make the change. Help appreciated!

MikeWDale commented 3 years ago

Found the line below in DMXSerial_avr.h and "uncommented" as shown. "// For using the serial port 1 on a Arduino MEGA 2560 board, enable the following DMX_USE_PORT1 definition.

define DMX_USE_PORT1 //uncomment by MWD"

Changed line in code from "Serial.begin(9600);" to "Serial1.begin(9600);" Now compiles and uploads to MEGA2560 Board