HackRF-Treasure-Chest/Software/urh/tests/data/encode.py

10 lines
165 B
Python
Raw Normal View History

2022-09-22 19:41:47 +02:00
#!/usr/bin/env python
"""
Simple example external encoding
Simply doubles each bit of the input
"""
import sys
bits = sys.argv[1]
print("".join(b+b for b in bits))