Page 1 of 1

Setting pin mode

Posted: Mon Dec 19, 2016 4:30 pm
by sjdttt
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

Posted: Tue Dec 20, 2016 9:21 am
by deshipu
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

Posted: Tue Dec 20, 2016 3:51 pm
by sjdttt
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.....).

Re: Setting pin mode

Posted: Fri Apr 27, 2018 10:26 am
by tonygo
Now working. See viewtopic.php?f=17&t=4657
You can get the latest version of Mu from Adafruit site.

Regards

Tony