Hi:
I have sucesfully been able to communicate with an RS485 converter through the pines 0-1..
I also been able to communicete with an RS232 converter with pins 13-14...
Now I want to use the an MKR Relay Shield that uses pins 1 and 2 for relays, so I want to use other pines for the RS 485 comunication, for example pin 6 and 7, but It doesn't work..:
This is the original code:
#include <Arduino.h>
#include "wiring_private.h"
# define RS_RO 6 // With pin 1 works
# define RS_DI 7 // with pin 0 works
Uart RS_Slave_1 (&sercom3, RS_DI, RS_RO, SERCOM_RX_PAD_1, UART_TX_PAD_0);
pinPeripheral(RS_RO, PIO_SERCOM);
pinPeripheral(RS_DI, PIO_SERCOM);
I know there are some limitations to the pines you can use for addtional serial communciations, but I haven't been able to fully understand it..., can anybody help?
Thanks in advance.