From 950859c5efe61d97c9730eb5d8bcadf600755d11 Mon Sep 17 00:00:00 2001 From: Jens Ullmert Date: Wed, 27 Jul 2022 15:24:06 +0200 Subject: [PATCH] back to serial0 --- Python/sock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/sock.py b/Python/sock.py index ea678c1..f8249d6 100644 --- a/Python/sock.py +++ b/Python/sock.py @@ -101,7 +101,7 @@ def sendDMX(data): global DMXRDM while True: - with serial.Serial('/dev/ttyAMA0', baudrate=250000, timeout=1, stopbits=serial.STOPBITS_TWO, bytesize=8) as DMXSER:# UART configuration and definition + with serial.Serial('/dev/serial0', baudrate=250000, timeout=1, stopbits=serial.STOPBITS_TWO, bytesize=8) as DMXSER:# UART configuration and definition DMXSER.cancel_read() # GPIO_18 to switch RS-485 driver (IC1) to TX-mode