diff --git a/doc/notes.txt b/doc/notes.txt index 8eeab0a3..96cbea7f 100644 --- a/doc/notes.txt +++ b/doc/notes.txt @@ -89,6 +89,7 @@ TODO: - https://www.crowdsupply.com/tinyfpga/tinyfpga-bx - HTTPS warning - Safari: scope doesn't show while CRT in use +- recording video indicator WEB WORKER FORMAT diff --git a/src/ui.ts b/src/ui.ts index 454657e1..4abd06d8 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -887,6 +887,7 @@ function _recordVideo() { }; f(); }); + return true; } function setFrameRateUI(fps:number) { diff --git a/tools/parsebdf4bit.py b/tools/parsebdf4bit.py index c0d39f97..c18b1946 100755 --- a/tools/parsebdf4bit.py +++ b/tools/parsebdf4bit.py @@ -50,7 +50,7 @@ with open(args.bdffile,'r') as f: if bytes[y] & (0x40 >> x): b |= 0x0f output.append(b) - print('const char CH_%d[] = { %s };' % ( chord, string.join([tohex2(x) for x in output], ',') )) + print('const char CH_%d[] = { %s };' % ( chord, ','.join([tohex2(x) for x in output]) )) chars[chord] = 'CH_%d' % chord elif inbitmap and len(toks) == 1: byte = int(toks[0],16) diff --git a/tools/parsebdf8.py b/tools/parsebdf8.py index 60db64b4..0df65e9b 100755 --- a/tools/parsebdf8.py +++ b/tools/parsebdf8.py @@ -99,27 +99,22 @@ def tohexv(v): for arr in [output]: if args.asmhex: - print('\thex ' + string.join(list(map(tohex,arr)),'')) + print('\thex ' + ''.join(list(map(tohex,arr)))) if args.asmdb: for i in range(0,len(output),height): - print('.DB', string.join(list(map(tohex2,arr[i:i+height])),','), ';%d'%(i/height+lochar)) + print('.DB', ','.join(list(map(tohex2,arr[i:i+height]))), ';%d'%(i/height+lochar)) if args.carray: print("static char FONT[%d][%d] = {" % (hichar-lochar+1, height)) for i in range(0,len(output),height): - print('{', string.join(list(map(tohex2,arr[i:i+height])),','), '},', end=' ') + print('{', ','.join(list(map(tohex2,arr[i:i+height]))), '},', end=' ') print() print("};") if args.flatcarray: print("static char FONT[%d] = {" % ((hichar-lochar+1) * height)) - print(string.join(list(map(tohex2,arr)),',')) + print(','.join(list(map(tohex2,arr)))) print("}"); if args.verilog: j = 0 for i in range(0,len(output),height): - #print "rom["+str(j)+"] = 32'h" + string.join(map(tohex,arr[i:i+height/2]),'') + ";" - #j += 1 - #print "rom["+str(j)+"] = 32'h" + string.join(map(tohex,arr[i+height/2:i+height]),'') + ";" - #j += 1 - #print "rom["+str(j)+"] = 64'h" + string.join(map(tohex,arr[i:i+height]),'') + ";" - print(string.join(list(map(tohexv,arr[i:i+height])),',') + ", //%d" % (i/height)) + print(','.join(list(map(tohexv,arr[i:i+height]))) + ", //%d" % (i/height)) j += 1 diff --git a/tss b/tss index d630ddcb..61a1691a 160000 --- a/tss +++ b/tss @@ -1 +1 @@ -Subproject commit d630ddcb29d74a178cde043d74188fac35d6a21f +Subproject commit 61a1691a1de05dca3b694bf603db49ffbaf572cf