2014-06-15 22:33:14 -07:00
|
|
|
import pyb
|
2014-01-08 01:00:22 -08:00
|
|
|
print("Executing boot.py")
|
2014-07-22 07:57:36 -07:00
|
|
|
|
|
|
|
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())))
|