• Hi,
    I'm currently trying to use UART Serial1 on GPIO 10 and GPIO 11. I've got it working and can communicate between it and the ESP32 I have attached. The only problem is that this is only the case when I'm connected via BLE on the Espruino IDE. As soon as I'm not connected, Serial1 doesn't send or receive transmissions. I've read that connecting GPIO0 to UART will enable this at startup but I was wondering is there anyway for me to use the pins above?

  • EDIT: oh sorry, I misread pixl pin numbers for esp32 pins

  • Pixl.js is nrf52832, it has only 1 uart preconfigured to pins D0,D1 https://github.com/espruino/Espruino/blo­b/master/boards/PIXLJS.py#L23 and https://github.com/espruino/Espruino/blo­b/master/boards/PIXLJS.py#L113
    When you disconnect from BLE the interactive console is switched to Serial and interferes with your usage. You can use Bluetooth.setConsole(true) to force interactive console to stay away from serial even when bluetooth is disconnected.

  • Thanks fanoush, that has sorted it. Really appreciate the help.

  • Sorry for the delay replying - glad you got this sorted!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Serial1 becomes unresponsive when not connected to serial via BLE on pixl.js

Posted by Avatar for Vivan @Vivan

Actions