ESP32_CANViewer
ESP32_CANViewer copied to clipboard
How Can I Change the CRX and CTX Pins in the Code for Olimex ESP32-EVB Board?
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!
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