https://micropython-nina-w102.blogspot. ... ython.html
The only problem is that the compiler didnt include ble and music
u-blox nina B302
u-blox nina B302
Last edited by tcpipchip on Mon Dec 21, 2020 8:11 pm, edited 1 time in total.
Re: u-blox nina B302
btw, how can ask to micropython compiler to add the Modules BLE and MUSIC during compiling
MicroPython v1.13-266-g069557ede on 2020-12-21; MDK-USB-DONGLE with NRF52840
Type "help()" for more information.
>>> import ble
Traceback (most recent call last):
File "<stdin>", in <module>
ImportError: no module named 'ble'
>>> import music
Traceback (most recent call last):
File "<stdin>", in <module>
ImportError: no module named 'music'
>>>
MicroPython v1.13-266-g069557ede on 2020-12-21; MDK-USB-DONGLE with NRF52840
Type "help()" for more information.
>>> import ble
Traceback (most recent call last):
File "<stdin>", in <module>
ImportError: no module named 'ble'
>>> import music
Traceback (most recent call last):
File "<stdin>", in <module>
ImportError: no module named 'music'
>>>
Re: u-blox nina B302
try this:
Followed by (flash SD and Application):
Subsequent updates of the Application after initial SD flash, can be done by issuing "deploy":
Code: Select all
make BOARD=nrf52840-mdk-usb-dongle SD=s140 CFLAGS_EXTRA="-DMICROPY_PY_MUSIC=1 -DMICROPY_PY_MACHINE_SOFT_PWM=1"
Code: Select all
make BOARD=nrf52840-mdk-usb-dongle SD=s140 NRFUTIL_PORT=/dev/ttyACM0 sd
Code: Select all
make BOARD=nrf52840-mdk-usb-dongle SD=s140 NRFUTIL_PORT=/dev/ttyACM0 deploy