Setting pin mode
Setting pin mode
I am struggling.... I want to set the pin mode of pin0 to NO_PULL ... does anyone have an example of how to do this.
Re: Setting pin mode
As far as I know this is not yet possible. There is a pull request about it at https://github.com/bbcmicrobit/micropython/pull/304
Re: Setting pin mode
Thanks....
Changed my circuit to be normally "Pull down" and things now work fine.
Shame as I would really like to be able to change the mode. The pull request is somewhat confusing, (I had tried the commands shown which resulted in Attribute errors.....).
Changed my circuit to be normally "Pull down" and things now work fine.
Shame as I would really like to be able to change the mode. The pull request is somewhat confusing, (I had tried the commands shown which resulted in Attribute errors.....).
Re: Setting pin mode
Now working. See viewtopic.php?f=17&t=4657
You can get the latest version of Mu from Adafruit site.
Regards
Tony
You can get the latest version of Mu from Adafruit site.
Regards
Tony