ESP32_CANViewer icon indicating copy to clipboard operation
ESP32_CANViewer copied to clipboard

How Can I Change the CRX and CTX Pins in the Code for Olimex ESP32-EVB Board?

Open TSJim opened this issue 4 years ago • 1 comments

I'm excited to try out your application for a project.

I'm using an ESP32-EVB board by Olimex. It includes a CAN bus driver IC (the MCP2551), but the CRX pin is hard-wired to pin 35 and the CTX pin is hard-wired to pin 05 on the PCB so I cannot readily change it.

I can't seem to find in your code or the libraries where I can change the RX and TX pins. Can you please tell me?

Thank you!

TSJim avatar Dec 07 '21 02:12 TSJim

Hi TSJim!

Please take a look at the API readme of the CAN library used.

https://github.com/adafruit/arduino-CAN/blob/master/API.md

You simply put CAN.setPins(rx, tx) before CAN.begin(baud).

Hope that helps. Best regards! Felix

Cellgalvano avatar Dec 07 '21 06:12 Cellgalvano