tried both... using 330 for baud rate failed no matter what - w/ and w/o E.setClock(). But the combination of lowering the clock rate of the UART using E.setClock({M:8, N:336, P:4, Q:7, PCLK1:2, PCLK2:8}); and 316bps did the job (on Serial1/USART1).
What properties and values do I have to use in E.setClock(...) for using Serial2/USART2?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon,
tried both... using 330 for baud rate failed no matter what - w/ and w/o E.setClock(). But the combination of lowering the clock rate of the UART using
E.setClock({M:8, N:336, P:4, Q:7, PCLK1:2, PCLK2:8});
and316bps
did the job (onSerial1/USART1
).What properties and values do I have to use in
E.setClock(...)
for usingSerial2/USART2
?