diff options
| author | Damien George | 2014-08-08 19:42:07 +0100 |
|---|---|---|
| committer | Damien George | 2014-08-08 19:42:07 +0100 |
| commit | 196773505a5750428c14d328eab3d346ad4b4b92 (patch) | |
| tree | c39943d0d3b424330ec849d7a81238b06a5cf858 /teensy/memzip_files/boot.py | |
| parent | a1d3ee376c25c0842096535c38e651431028d1b8 (diff) | |
| parent | 6f418fc1b068c1a41113bb2b019a5803765e1deb (diff) | |
Merge branch 'pin-af' of https://github.com/dhylands/micropython into dhylands-pin-af
Diffstat (limited to 'teensy/memzip_files/boot.py')
| -rw-r--r-- | teensy/memzip_files/boot.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/teensy/memzip_files/boot.py b/teensy/memzip_files/boot.py index 4702d7b5d..6dd5516a9 100644 --- a/teensy/memzip_files/boot.py +++ b/teensy/memzip_files/boot.py @@ -1,2 +1,12 @@ import pyb print("Executing boot.py") + +def pins(): + for pin_name in dir(pyb.Pin.board): + pin = pyb.Pin(pin_name) + print('{:10s} {:s}'.format(pin_name, str(pin))) + +def af(): + for pin_name in dir(pyb.Pin.board): + pin = pyb.Pin(pin_name) + print('{:10s} {:s}'.format(pin_name, str(pin.af_list()))) |
