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