Replies: 7 comments 1 reply
-
Not sure what planet I was on when I wrote this question - I meant i2c not DMA... |
Beta Was this translation helpful? Give feedback.
-
Have you looked at https://www.diozero.com/utilityapps.html? The code for |
Beta Was this translation helpful? Give feedback.
-
@EAGrahamJr thanks for the reply...
The version strings correspond to legacy revisions 0002 and 0003. Can anyone confirm that this looks right or suggest better please? |
Beta Was this translation helpful? Give feedback.
-
Well, there is the notion of not bothering to support such old boards 😃 If you're going that route, I wouldn't use hard-coded strings, but rather use the board's You could also construct an |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm not using them, but I think that 2 of the original Model A s I have may be V1.1! |
Beta Was this translation helpful? Give feedback.
-
Slight problem, all the constants and the getPcbRevision are only accessible on the internal API version of the interface. |
Beta Was this translation helpful? Give feedback.
-
You should be able to cast the BoardInfo returned from the device factory getBoardInfo method to PiBoardInfo and then call the public operation getPcbRevision. The PCB_REV_ constants are all public in RaspberryPiBoardInfoProvider |
Beta Was this translation helpful? Give feedback.
-
Hi,
As I understand it, most Pis use bus 1 for i2c by default, but some models use 0. What is the best way, using diozero, to determine which?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions