Hello,
I.m working with the lib "dmx serial" on a mega and all works fine with serial port 0 or as specified in the spec lib (just a line to uncomment in the .cpp) with the port 1 but i can't access to the port 2 or 3 with this lib.
If someone have a clue for me......
Sorry for I imagine this newbee question, I'm not yet familliar with the arduino langage.....
Thanks for all
I.m working with the lib "dmx serial"
I can assure you that there is no library named "dmx serial", for two reasons. One is that library names can not contain spaces. Another is that library names can not contain double quotes.
No, where is your code? Where are the links to the libraries you are using? Clearly, you did not read the posts at the top of this forum regarding how to post in this forum. Read them before replying.
Hello
Thx for your response.
Of course you re right.
The correct name of the lib is "DMXserial" from there : http://www.mathertel.de.
And the code is simply the exemple wich is giving with, called " DMXserialRecv".
Sorry for this kind unpolite headpost.
Thanks for all.
#elif defined(DMX_USE_PORT1) || defined(USART1_RX_vect)
// These definitions are used for using serial port 1
// on ATmega32U4 boards like Arduino Leonardo, Esplora
// You can use it on other boards with USART1 by enabling the DMX_USE_PORT1 port definition
#define UCSRnA UCSR1A
#define TXCn TXC1
#define UCSRnB UCSR1B
#define RXCIEn RXCIE1
#define TXCIEn TXCIE1
#define UDRIEn UDRIE1
#define RXENn RXEN1
#define TXENn TXEN1
#define UCSRnC UCSR1C
#define USBSn USBS1
#define UCSZn0 UCSZ10
#define UPMn0 UPM10
#define UBRRnH UBRR1H
#define UBRRnL UBRR1L
#define UDRn UDR1
#define UDREn UDRE1
#define FEn FE1
#define USARTn_RX_vect USART1_RX_vect
#define USARTn_TX_vect USART1_TX_vect
#define USARTn_UDRE_vect USART1_UDRE_vect
The 1 in the names indicates serial port 1. Change the number to 2 in all the names to use serial port 2.
Thank you for the reply , It works.
I had to buy new glasses.
Thx for your time.