WeACT F411 accessing hardware directly problem #16746
Answered
by
rkompass
davefes
asked this question in
STM32 / Pyboard
-
import stm
import pyb
# set PA1 high
stm.mem32[stm.GPIOA + stm.GPIO_BSRR] = 1 does not seem to work. I am just following a |
Beta Was this translation helpful? Give feedback.
Answered by
rkompass
Feb 13, 2025
Replies: 1 comment 32 replies
-
You might have forgotten to configure PA1 to output, if you try to measure the voltage on the GPIO pin. |
Beta Was this translation helpful? Give feedback.
32 replies
Answer selected by
davefes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might have forgotten to configure PA1 to output, if you try to measure the voltage on the GPIO pin.
But a read of the pin should show the changed value !?.