Skip to content

Instantly share code, notes, and snippets.

View eastoncrafter's full-sized avatar

eastoncrafter

View GitHub Profile
@eastoncrafter
eastoncrafter / create_sub.py
Created July 27, 2022 04:32 — forked from jinschoi/create_sub.py
Python script to generate Flipper RAW .sub files from OOK bitstreams
#!/usr/bin/env python3
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
# repeats: number of times to repeat sequence
# pause: time to wait in μs between sequences
# bits: string of ones and zeros to represent sequence