#NEWLINE# def __init__( self , board , pin ) : #NEWLINE# #INDENT# if ( not board ) : #NEWLINE# #INDENT# raise ArduinoNotSuppliedException #NEWLINE# #UNINDENT# super ( Component , self ) . __init__ ( ) #NEWLINE# self . _board = board #NEWLINE# analog_regex = re . compile ( 'A(\\d)' ) #NEWLINE# match = analog_regex . match ( str ( pin ) ) #NEWLINE# if match : #NEWLINE# #INDENT# self . _pin = self . _board . analog [ int ( match . group ( 1 ) ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _pin = self . _board . digital [ int ( pin ) ]