code: def _createBitpattern(functioncode, value):
      
      _checkFunctioncode(functioncode, [5, 15])
      _checkInt(value, minvalue=0, maxvalue=1, description='inputvalue')
  
      if functioncode == 5:
          if value == 0:
              return '\x00\x00'
          else:
              return '\xff\x00'
  
      elif functioncode == 15:
          if value == 0:
              return '\x00'
          else:
              return '\x01'
docs: Create the bit pattern that is used for writing single bits.
  
      This is basically a storage of numerical constants.
  
      Args:
          * functioncode (int): can be 5 or 15
          * value (int): can be 0 or 1
  
      Returns:
          The bit pattern (string).
  
      Raises:
          TypeError, ValueError