Skip to content

firmware.bin

Latest
Compare
Choose a tag to compare
@junhuanchen junhuanchen released this 21 Apr 14:18
· 57 commits to master since this release

Pull the code, provide a bluetooth host module.

micropython/micropython#4589

Example:

import bluetooth
bt = bluetooth.Bluetooth()
bt.active(1)
bt.advertise(100, 'MicroPython')
tx = bluetooth.Characteristic('6E400002-B5A3-F393-E0A9-E50E24DCCA9E', bluetooth.FLAG_READ|bluetooth.FLAG_NOTIFY)
rx = bluetooth.Characteristic('6E400003-B5A3-F393-E0A9-E50E24DCCA9E', bluetooth.FLAG_WRITE)
s = bt.add_service('6E400001-B5A3-F393-E0A9-E50E24DCCA9E', [tx, rx])

tx.write('hello')

def callback(char, data):
    print('rx on update data:', data)

rx.on_update(callback)

Provides an android debugging tool.