[W600-Pico]Register programming for IO #12146
Replies: 5 comments 5 replies
-
Yes, you can. The GPIO port and other IO registers are memory mapped. The addresses can be found in the attached document, section 9.4. You can access these e.g. using the machine.mem32() method, or using viper code. Edit: Note that the W600 port is not officially support by MicroPython. It is supported by users of MicroPython like me. |
Beta Was this translation helpful? Give feedback.
-
Are the pin names changed for your firmware? I keep getting this error for code I was running on a dirty v1.19 firmware: AttributeError: type object 'Pin' has no attribute 'PB_09' |
Beta Was this translation helpful? Give feedback.
-
Is Pin.PULL_DOWN the same as Pin.PULL_NONE or is PULL_DOWN not implemented? |
Beta Was this translation helpful? Give feedback.
-
Have you written any sample register level programming codes for the W600-PICO? If so can you please share them here? |
Beta Was this translation helpful? Give feedback.
-
No. It was not needed. What do you want to achieve? I did some for other ports. Below is a Pin toggle example in three variants. A lot of direct port access is as well in the linked file, done for STM32. https://github.com/robert-hh/SSD1963-TFT-Library-for-PyBoard-and-RP2040/blob/master/pyboard/tft_io.py The class P.S.: I re-enabled the Pin.PA_xx and Pin.PB_xx in the shared firmware images. I'll wait for dropping it until v2.x, which will have more breaking changes.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can I use registers-level-programming to poll IO in W600-Pico? If so, what register range would I need to use for the Pins?
Beta Was this translation helpful? Give feedback.
All reactions