Left for archival purposes.

User avatar
By kolalde
#12144
Fr4gg0r wrote:There is a second hardware UART (tx only on GPIO 2), just saying.. ;)


I hope I'm missing something simple, but can you point me to example code that uses that second UART? I saw some use in the IoT example, I'll try that tonight. Any other pointers would be appreciated. Thanks.
User avatar
By kolalde
#12147 OK, answering my own question:

os_install_putc1((void *)uart1_write_char); // that seemed to redirect output from os_printf to GPIO2.

OK, cool, updated my DS18x20 code, used some fun defines for GPIO2, move to GPIO5.
And not sure exactly what the pattern is yet, but hooking up GPIO2 to the RX on my FTDI is messing around with re-flashing. Off to add some definition to 'messing around'.