serial1 to ttyAMA0?
This commit is contained in:
parent
0a569f876e
commit
ce390fe6e2
@ -101,7 +101,7 @@ def sendDMX(data):
|
||||
global DMXRDM
|
||||
|
||||
while True:
|
||||
with serial.Serial('/dev/serial1', baudrate=250000, timeout=1, stopbits=serial.STOPBITS_TWO, bytesize=8) as DMXSER:# UART configuration and definition
|
||||
with serial.Serial('/dev/ttyAMA0', 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user