MCP2515-Library MicroPython
Posted: Tue Sep 18, 2018 1:25 pm
Hello,
I'm new to MicroPython and don't have much experience with it, so please pardon if any questions sound stupid.
I have a working Arduino-Sketch that uses this lib: https://github.com/autowp/arduino-mcp2515
To communicate via CAN-Bus.
Now I want to port this sketch to MicroPython on a ESP32, but I can't find any library for the MCP2515. What would be the best way to use it? Is there any possiblity to import the C-Code so that I can use it from within my main.py? I don't have experience with compiling my own micropython-version. But if there's some good tutorial how to do it for the ESP32 or something I could try that and I'd be grateful.
Or would it be easier to re-write the C-Code from the library into a python-Script and use this python-script?
Thanks for your answers!
I'm new to MicroPython and don't have much experience with it, so please pardon if any questions sound stupid.
I have a working Arduino-Sketch that uses this lib: https://github.com/autowp/arduino-mcp2515
To communicate via CAN-Bus.
Now I want to port this sketch to MicroPython on a ESP32, but I can't find any library for the MCP2515. What would be the best way to use it? Is there any possiblity to import the C-Code so that I can use it from within my main.py? I don't have experience with compiling my own micropython-version. But if there's some good tutorial how to do it for the ESP32 or something I could try that and I'd be grateful.
Or would it be easier to re-write the C-Code from the library into a python-Script and use this python-script?
Thanks for your answers!