Hello,
Firmware Version: 11721
Product: Digi XBee 3 Low-Power LTE-M/NB-IoT
Part number: XB3-C-GM1-UT-XXX
When I run this code everything is fine and the Module does write the string "TEST" on the secondary UART TX Pin (physical Pin: 11) as excepted.
import time
from machine import UART, Pin
from xbee import relay
import xbee
uart = UART(1, baudrate=19200, bits=8, parity=None, stop=1)
while True:
uart.write("TEST")
time.sleep(3)
However, when I also try to define and use the GPIO Pin P0 (Physical Pin: 6), then the module doesn't write the string "TEST" anymore to the secondary UART TX pin. I validated that by measuring the Pin with an oscilloscope, there was no signal. uart.write is silently doing nothing:
import time
from machine import UART, Pin
from xbee import relay
import xbee
uart = UART(1, baudrate=19200, bits=8, parity=None, stop=1)
led = Pin("P0", Pin.OUT, value=0) # HW_Pin: 6
led.value(1)
while True:
uart.write("TEST")
time.sleep(3)
This is unexpected behaviour. What I would at least to expect is an exception. Is it possible to make secondary UART and the GPIO Pin working concurrently?
best regards from Berlin!
Hello,
Firmware Version: 11721
Product: Digi XBee 3 Low-Power LTE-M/NB-IoT
Part number: XB3-C-GM1-UT-XXX
When I run this code everything is fine and the Module does write the string "TEST" on the secondary UART TX Pin (physical Pin: 11) as excepted.
However, when I also try to define and use the GPIO Pin P0 (Physical Pin: 6), then the module doesn't write the string "TEST" anymore to the secondary UART TX pin. I validated that by measuring the Pin with an oscilloscope, there was no signal. uart.write is silently doing nothing:
This is unexpected behaviour. What I would at least to expect is an exception. Is it possible to make secondary UART and the GPIO Pin working concurrently?
best regards from Berlin!