code: def _encode_binary(message, on=1, off=0):
      
      l = _encode_morse(message)
      s = ' '.join(l)
      l = list(s)
      bin_conv = {'.': [on], '-': [on] * 3, ' ': [off]}
      l = map(lambda symb: [off] + bin_conv[symb], l)
      lst = [item for sublist in l for item in sublist]  # flatten list
      return lst[1:]
docs: >>> message = "SOS"
      >>> _encode_binary(message)
      [1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1]
  
      >>> _encode_binary(message, on='1', off='0')
      ['1', '0', '1', '0', '1', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '0', '1', '1', '1', '0', '0', '0', '1', '0', '1', '0', '1']