Writing to a specific register in circuitpython

319 Views Asked by At

Seems like https://docs.micropython.org/en/latest/library/stm.html#stm.mem32 can be used in micropython, what can be the equivalent in circuitpython or is it not possible?

I am trying to write to the specific register of pi pico to disable some memory banks to reduce power usage when idle.

1

There are 1 best solutions below

1
On

In the latest CircuitPython, memory reads and writes can be accomplished using memorymap: https://docs.circuitpython.org/en/latest/shared-bindings/memorymap/index.html