diff options
Diffstat (limited to 'tests/ports/stm32/modstm.py')
-rw-r--r-- | tests/ports/stm32/modstm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ports/stm32/modstm.py b/tests/ports/stm32/modstm.py index f1e147c052..1459ee2a9e 100644 --- a/tests/ports/stm32/modstm.py +++ b/tests/ports/stm32/modstm.py @@ -1,13 +1,13 @@ # test stm module import stm -import pyb +import time # test storing a full 32-bit number # turn on then off the A15(=yellow) LED BSRR = 0x18 stm.mem32[stm.GPIOA + BSRR] = 0x00008000 -pyb.delay(100) +time.sleep_ms(100) print(hex(stm.mem32[stm.GPIOA + stm.GPIO_ODR] & 0x00008000)) stm.mem32[stm.GPIOA + BSRR] = 0x80000000 print(hex(stm.mem32[stm.GPIOA + stm.GPIO_ODR] & 0x00008000)) |