WebBluetooth browser required, e.g Chromium on desktop or Bluey on iOS

code snippet 1 : displaying text


output

code snippet 2 : turning on green LED


code snippet 3 : filesystem


Anything before iterations fails, blocks the rest. Seems import uos isn't required.

helpers

documentation

Once connected see myMonocle and to send microPython code use myMonocle.repl('your code')
You can directly use https://monocolejs.glitch.me/monoclejs as a no-build solution.
Based on monocle.ts transformed with Babel and exposing myMonocle.

import device; print(device.battery_level())