Skip to content

Instantly share code, notes, and snippets.

@atharvai
Created September 4, 2020 21:36
Show Gist options
  • Save atharvai/e0e18ca948890e6a577d78bf05ebfd86 to your computer and use it in GitHub Desktop.
Save atharvai/e0e18ca948890e6a577d78bf05ebfd86 to your computer and use it in GitHub Desktop.
Microbit Bluetooth LE Eddystone URL to publish ADC inputs
basic.forever(function () {
control.waitMicros(5000)
bluetooth.advertiseUrl(
"adc/" + pins.analogReadPin(AnalogPin.P0) + "/" + pins.analogReadPin(AnalogPin.P1) + "/" + pins.analogReadPin(AnalogPin.P2),
7,
false
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment