Created
September 4, 2020 21:36
-
-
Save atharvai/e0e18ca948890e6a577d78bf05ebfd86 to your computer and use it in GitHub Desktop.
Microbit Bluetooth LE Eddystone URL to publish ADC inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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