diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-08-08 22:41:06 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-08-08 22:41:06 +0100 |
| commit | 416227118150a6d3cac6ae94e4e9e8d7e482890f (patch) | |
| tree | 586fae07925581402aa6f5dc22a6d290cc10d90b /teensy/memzip_files/boot.py | |
| parent | a1d3ee376c25c0842096535c38e651431028d1b8 (diff) | |
| parent | b92e7533d3b40fd5129982370f177f47b2790df8 (diff) | |
Merge branch '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()))) |
