When launching the BLE library on an Arduino Opta with MicroPython, I get the following error: mp_bluetooth_hci_uart_write: failed to write to UART 110. I can't find any information about it in the forums.
Thanks.
Hi @sddensayo ,
You can test Bluetooth on Arduino Opta with MicroPython by following the steps below:
- Install MicroPython firmware using the Arduino MicroPython Installer.
- Download and run the Arduino Lab for MicroPython.
- Test the following scripts to scan for Bluetooth devices or to control LED_D0 via an app like nRF Connect by writing 0 or 1 to toggle LED D0.
Best,
Scan devices.py (573 Octets)
LED_D0 Control .py (2,0 Ko)
Thanks for the examples. LED_D0 Control.py works great on the ESP32 with Micropython using MIT App Inventor, I just had to generate a couple of new UUID's.
My problem now is that Opta won't let me access boot.py from the Arduino IDE. I try to create a main.py or boot.py from the IDE, and the screen shows that it creates them, but they never appear.
Thanks for the examples.
Hi @Hm_pro, is the support of both cores available on Micropython using _thread module?
Best regards, Marco