-
I notice that the umachine.Pin has a two class literals that Python would not allow 5V_ENABLE : Any ## <class 'Pin'> = Pin("5V_ENABLE", mode=IN, pull=PULL_OFF, GPIO=PC14)
3V3_ENABLE : Any ## <class 'Pin'> = Pin("3V3_ENABLE", mode=IN, pull=PULL_OFF, GPIO=PC15) I'm not sure if this is new to the 1.20.0 build, or existed earlier Also I notice that the umachine.uname() does not exist.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There was no change in the Pin class between the last nightly build of v1.19.1 and v1.20. But there is a big difference between v1.19.1 "official" and v1.20. 5V_ENABLE and 3V3_ENABLE are just pin names, but go of course go into the pin.board class. They can be changed. machine.uname() was in one PR, but not merged, because it's planned to drop it. So it's left off intentionally. |
Beta Was this translation helpful? Give feedback.
I added a commit to change these to the actual service type PR, which collects small changes & fixes.
I do not know more that Damien's comment on my attempt to include machine.uname(). As a breaking change I expect that not to happen before version 2.0. As alternative sys.implementation may match.