Enable beep again
This commit is contained in:
parent
94a295b917
commit
54c84edde2
1 changed files with 5 additions and 4 deletions
|
@ -118,10 +118,11 @@ def reset_color():
|
||||||
change_color('Z', 'g')
|
change_color('Z', 'g')
|
||||||
release_keys()
|
release_keys()
|
||||||
|
|
||||||
def beep():
|
def beep(code='ff'):
|
||||||
write_report(NULL_CHAR * 2 + chr(0x29) + 'ff' + NULL_CHAR * 3)
|
write_report(NULL_CHAR * 2 + chr(0x29) + NULL_CHAR * 5)
|
||||||
release_keys()
|
release_keys()
|
||||||
print('beep')
|
for char in code:
|
||||||
|
printchar(char)
|
||||||
|
|
||||||
|
|
||||||
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||||
|
@ -144,7 +145,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||||
printstring('\n' * 32)
|
printstring('\n' * 32)
|
||||||
else:
|
else:
|
||||||
printstring(message + '\n')
|
printstring(message + '\n')
|
||||||
# beep()
|
beep()
|
||||||
reset_color()
|
reset_color()
|
||||||
file.flush()
|
file.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue