parameters: (mcu, pin)
return_statement: return ADC1_map[pin]
docstring: return ADC1 channel for an analog pin
docstring_summary: return ADC1 channel for an analog pin
docstring_tokens: return ADC1 channel for an analog pin
function: def get_ADC1_chan(mcu, pin):
      '''return ADC1 channel for an analog pin'''
      import importlib
      try:
          lib = importlib.import_module(mcu)
          ADC1_map = lib.ADC1_map
      except ImportError:
          error("Unable to find ADC1_Map for MCU %s" % mcu)
  
      if pin not in ADC1_map:
          error("Unable to find ADC1 channel for pin %s" % pin)
      return ADC1_map[pin]
function_tokens: def get_ADC1_chan ( mcu , pin ) : import importlib try : lib = importlib . import_module ( mcu ) ADC1_map = lib . ADC1_map except ImportError : error ( "Unable to find ADC1_Map for MCU %s" % mcu ) if pin not in ADC1_map : error ( "Unable to find ADC1 channel for pin %s" % pin ) return ADC1_map [ pin ]