KevinOConnor / can2040

Software CAN bus implementation for rp2040 micro-controllers
GNU General Public License v3.0
636 stars 63 forks source link

can2040 for micropython #28

Closed Eminemchik closed 1 year ago

Eminemchik commented 1 year ago

Hi, thanks for the great library! Are there plans for a micropython version?

bjpirt commented 1 year ago

I came here wondering the same thing - would be an amazing add-on to the MicroPython ecosystem!

KevinOConnor commented 1 year ago

FWIW, I don't know of anyone currently working on a MicroPython implementation.

Cheers, -Kevin

bjpirt commented 1 year ago

@KevinOConnor Given that you can configure the RP2040 state machines directly from Python code, I was wondering if you know of any blockers to porting your code to pure Python (given you know the code best!), rather than compiling the C code into MicroPython.

I wouldn't mind giving it a try but knowing it's theoretically possible would be helpful before embarking on such a mission

KevinOConnor commented 1 year ago

Alas, it's not something I've looked at, so I'm not able to provide any meaningful advice.

-Kevin

ferranmercader commented 1 year ago

@Eminemchik @bjpirt , I'm came here also wondering the same thing. I've found this repository: https://github.com/kentindell/canis-can-sdk

Did you finally find any solution?

Eminemchik commented 1 year ago

@ferranmercader I ended up using the MCP2515 in my project. I used the code from https://www.waveshare.com/wiki/Pico-CAN-B as an example.

github-actions[bot] commented 1 year ago

Hello,

It looks like there hasn't been any recent updates on this github ticket. We prefer to only list tickets as "open" if they are actively being worked on. Feel free to provide an update on this ticket. Otherwise the ticket will be automatically closed in a few days.

Best regards,

~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.