diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 85a0c73c..68ebe797 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -33,6 +33,18 @@ * [Plot analog pin](/examples/plot-analog-pin) * [Servo Calibrator](/examples/servo-calibrator) +## Examples #examples + +* [Examples](/examples) + * [blinky](/examples/blinky) + * [name tag](/examples/name-tag) + * [rando](/examples/rando) + * [plot acceleration](/examples/plot-acceleration) + * [plot light level](/examples/plot-light-level) + * [plot analog pin](/examples/plot-analog-pin) + * [servo calibrator](/examples/servo-calibrator) + * [Eddystone beacon](/examples/eddystone-beacon) + ## #reference * [Reference](/reference) diff --git a/docs/examples.md b/docs/examples.md index 3181968b..69d7a319 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -48,4 +48,14 @@ Here are some fun programs for your @boardname@! "description": "calibrates a servo", "url":"/examples/servo-calibrator" }] +``` + +## Bluetooth + +```codecard +[{ + "name": "Eddystone Beacon", + "description": "Beacon that beams a URL", + "url": "/examples/eddystone-beacon" +}] ``` \ No newline at end of file diff --git a/docs/examples/eddystone-beacon.md b/docs/examples/eddystone-beacon.md new file mode 100644 index 00000000..28863b71 --- /dev/null +++ b/docs/examples/eddystone-beacon.md @@ -0,0 +1,14 @@ +# Eddystone Beacon + +```blocks +led.enable(false) +bluetooth.advertiseUrl( + "https://makecode.com", + 7, + false +) +``` + +```package +device +```