Changed serial port
This commit is contained in:
parent
4525acfb7d
commit
8bb674e745
@ -94,7 +94,7 @@ def print_image():
|
|||||||
def print_text():
|
def print_text():
|
||||||
if session.get('logged_in'):
|
if session.get('logged_in'):
|
||||||
if len(request.form['message']) < 200:
|
if len(request.form['message']) < 200:
|
||||||
printer = Adafruit_Thermal('/dev/serial0', 19200, timeout=5)
|
printer = Adafruit_Thermal('/dev/ttyAMA0', 19200, timeout=5)
|
||||||
printer.begin()
|
printer.begin()
|
||||||
printer.justify('L')
|
printer.justify('L')
|
||||||
printer.println((request.form['message']).encode())
|
printer.println((request.form['message']).encode())
|
||||||
|
Loading…
Reference in New Issue
Block a user