Search found 6 matches

by dkeeney
Sat Jun 06, 2020 12:51 pm
Forum: Programs, Libraries and Tools
Topic: uheapq and atomicity
Replies: 4
Views: 257

Re: uheapq and atomicity

How about if ISR and non-ISR code are both using the heapq? Wouldn't there be a possibility of race conditions? I could wrap all heap operations in micropython.schedule calls, but then I would need some clever way to recover popped values, maybe using a simple list as a return value queue, since lis...
by dkeeney
Fri Jun 05, 2020 3:52 pm
Forum: Programs, Libraries and Tools
Topic: uheapq and atomicity
Replies: 4
Views: 257

uheapq and atomicity

The docs for micropython.schedule promise that it will not interrupt fundamental python operations, with list-appending as an example. Are uheapq operations (heappop, heappush) atomic in this context? They are implemented in C, and I would infer that that makes them atomic from Python's reference, b...
by dkeeney
Fri Jun 05, 2020 3:45 pm
Forum: Pyboard D-series
Topic: U.S. availability
Replies: 2
Views: 217

Re: U.S. availability

Yes. I bought my D-Series from the store.micropython.org site few months ago, and it arrived in Texas 2-3 weeks later. More recently, like in May, I bought a DIP64 board from the same source, and it has arrived. So, yes, they will ship to the US, and while post is not very fast, it was only a few do...
by dkeeney
Sun May 31, 2020 11:52 pm
Forum: Pyboard D-series
Topic: Pyboard D-Series and CAN Bus
Replies: 4
Views: 482

Re: Pyboard D-Series and CAN Bus

Update: I had it wired wrong. The guidance I was following described the Pyboard v1 board. The D-Series has one can-bus connection, using the pins X9 and X10. If you use the DIP68 connector, the pins are exposed as pins W55 and W59. So the working can-bus is as described in my original post, with th...
by dkeeney
Sun May 10, 2020 3:08 am
Forum: Pyboard D-series
Topic: Pyboard D-Series and CAN Bus
Replies: 4
Views: 482

Re: Pyboard D-Series and CAN Bus

kesterlester:

Thank you for the input. Yeah, I did provide that Pin('EN_3V3').on() call when I was using the 3V line. I went back to using the VIN as a power source, which does not require enabling.

I found some code on github, by 'hmaerki', and will be testing it this weekend.

David
by dkeeney
Sun May 03, 2020 6:30 pm
Forum: Pyboard D-series
Topic: Pyboard D-Series and CAN Bus
Replies: 4
Views: 482

Pyboard D-Series and CAN Bus

Hi. Getting pyboard to communicate with a CAN Bus has been challenging. I am hoping someone with experience can look at my effort and identify an omission or error, or ways to diagnose the problem. Hardware Pyboard D-Series WBUS-Dip28 SN65HVD230 CAN Board Wired as: WBUS pins Y3 and Y4 to CAN Board a...