You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However this doesn't seem correct and setting a rx pin, eg in case of a gps module is necessary.
eg. this doesn't work: port = :uart.open("UART2", [{:speed, 9600}])
but this works (for :uart.read()): port = :uart.open("UART2", [{:speed, 9600}, {:rx, 16}])
Previously failed to mention RX/TX options, and suggested they would default according to the schema, which they dont.
Fixesatomvm#1356
Signed-off-by: Peter M <petermm@gmail.com>
Previously failed to mention RX/TX options, and suggested they would default according to the schema, which they dont.
Fixesatomvm#1356
Signed-off-by: Peter M <petermm@gmail.com>
petermm
added a commit
to petermm/AtomVM
that referenced
this issue
Oct 28, 2024
Previously failed to mention RX/TX options, and suggested they would default according to the schema, which they dont.
Fixesatomvm#1356
Signed-off-by: Peter M <petermm@gmail.com>
Uart docs: https://www.atomvm.net/doc/main/programmers-guide.html#uart suggest setting "UART2" will default rx/tx pins to 16/17.
However this doesn't seem correct and setting a rx pin, eg in case of a gps module is necessary.
eg. this doesn't work:
port = :uart.open("UART2", [{:speed, 9600}])
but this works (for :uart.read()):
port = :uart.open("UART2", [{:speed, 9600}, {:rx, 16}])
upstream docs:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/uart.html#uart-api-setting-communication-pins
The text was updated successfully, but these errors were encountered: