<s> import pyb <EOL> import micropython <EOL> import sys <EOL> before_mode = pyb . usb_mode ( ) <EOL> pyb . usb_mode ( '<STR_LIT>' ) <EOL> after_mode = pyb . usb_mode ( ) <EOL> def bl ( ) : <EOL> pyb . bootloader ( ) <EOL> def pins ( ) : <EOL> for pin_name in dir ( pyb . Pin . board ) : <EOL> pin = pyb . Pin ( pin_name ) <EOL> print ( '<STR_LIT>' . format ( pin_name , str ( pin ) ) ) <EOL> def af ( ) : <EOL> for pin_name in dir ( pyb . Pin . board ) : <EOL> pin = pyb . Pin ( pin_name ) <EOL> print ( '<STR_LIT>' . format ( pin_name , str ( pin . af_list ( ) ) ) ) <EOL> def init ( ) : <EOL> if False : <EOL> uart = pyb . UART ( <NUM_LIT:6> , <NUM_LIT> ) <EOL> pyb . repl_uart ( uart ) <EOL> print ( "<STR_LIT>" ) <EOL> if False : <EOL> bufsize = <NUM_LIT:100> <EOL> print ( "<STR_LIT>" , bufsize ) <EOL> micropython . alloc_emergency_exception_buf ( bufsize ) <EOL> init ( ) </s>
