Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose all mprj_io pins in the micropython HAL #66

Closed
proppy opened this issue Mar 16, 2023 · 2 comments
Closed

expose all mprj_io pins in the micropython HAL #66

proppy opened this issue Mar 16, 2023 · 2 comments

Comments

@proppy
Copy link
Contributor

proppy commented Mar 16, 2023

Slightly related to #65, but assuming we're using the default micropython firmware it seems that only a subset of the caravel mprj_io are exposed in the micropython HAL (despite all of them being physically connected to CN11 and CN12):
https://github.com/micropython/micropython/blob/05bb26010e4a466a82cfed179f8d8d0b406a78ca/ports/stm32/boards/NUCLEO_F746ZG/pins.csv

We should make sure that all of those are expose to the micropython environment, so that people can poke at their design directly from the micropython REPL.

@proppy proppy changed the title expose all mprj_io pins in the micropython HATL expose all mprj_io pins in the micropython HAL Mar 16, 2023
@proppy
Copy link
Contributor Author

proppy commented Mar 16, 2023

/cc @mithro

@proppy
Copy link
Contributor Author

proppy commented Mar 17, 2023

Found out that most of the pins are actually exposed, you just need to remove the P prefix, i.e:
IO[6] -> PE0 -> machine.Pin('E0')

@proppy proppy closed this as completed Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant