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