-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Originally posted on the Adafruit Circuit Python forum, reposting here for the Silabs team.
After some time away from CP I am now trying again with a new development. While I wait for my custom board to come back from fabrication I am starting to get code going with the MGM240P.
First issue...the internal pull-ups or pull-downs don't seem to work. I am using CP 10.0.1. My code is...
# Configure temperature sensor alert GPIO (PB1) as an input, with a pull-up
temp_alert = digitalio.DigitalInOut(board.PB1)
temp_alert.direction = digitalio.Direction.INPUT
temp_alert.pull = digitalio.Pull.UP
When I check the pin with a DVM it is not pulled up (or down if I flip it the other way), it appears to be floating.
If I set the pin as an output and set it low or high, there are no issues, works as expected. So I know I am looking at the correct pin when it's an output.
Have I missed something here? I expected to see PB1 pull up or down, depending how it's set.
Thanks for any guidance on what I may be doing incorrectly.