Anyone know where the definition of the "machine" is for micropython? I'm looking for address map, pin definitions, etc which are in that...
I can just inspect it from REPL which gets me what I want
e
Ewen McNeill
02/18/2023, 1:37 AM
IIRC the "machine" definition is per-board / per-port of MicroPython. Inspecting it in the REPL is probably fastest (that's what I usually do). Otherwise I suspect looking in the individual port source directory for the board you're using would be the place to start looking.
There's also some common documentation at https://docs.micropython.org/en/latest/library/machine.html if you're just looking to find out what's usually in that class.
👍 1
j
jeffdi
02/18/2023, 7:35 PM
It's been customized for caravel. The pin definition is in the docs directory.
👍 2
m
Matthew Guthaus
02/18/2023, 10:13 PM
It's also address maps etc. I'm not sure where the official documentation on these things lives