diff --git a/.gitignore/error correction b/.gitignore/error correction index f36df7a..9b32ef8 100644 --- a/.gitignore/error correction +++ b/.gitignore/error correction @@ -32,7 +32,8 @@ def segmentString(string, fill): s2 += fill s1.append(s2) return s1 - + + def printFrames(frames): frameN = 0 for frame in frames: @@ -45,4 +46,10 @@ def printFrames(frames): print() - +def string2frames(string, fill): + frames = [] + newString = segmentString(string, fill) + for n in newString: + b = string2bin(n) + frames.append(b) + return frames