2014-06-16 01:33:14 -04:00
|
|
|
import pyb
|
2020-02-26 23:36:53 -05:00
|
|
|
|
2014-01-08 04:00:22 -05:00
|
|
|
print("Executing boot.py")
|
2014-07-22 10:57:36 -04:00
|
|
|
|
2020-02-26 23:36:53 -05:00
|
|
|
|
2014-07-22 10:57:36 -04:00
|
|
|
def pins():
|
|
|
|
for pin_name in dir(pyb.Pin.board):
|
|
|
|
pin = pyb.Pin(pin_name)
|
2020-02-26 23:36:53 -05:00
|
|
|
print("{:10s} {:s}".format(pin_name, str(pin)))
|
|
|
|
|
2014-07-22 10:57:36 -04:00
|
|
|
|
|
|
|
def af():
|
|
|
|
for pin_name in dir(pyb.Pin.board):
|
|
|
|
pin = pyb.Pin(pin_name)
|
2020-02-26 23:36:53 -05:00
|
|
|
print("{:10s} {:s}".format(pin_name, str(pin.af_list())))
|