From b59b05df53d12987c759c5d293515cb0f06937df Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 27 Mar 2017 16:25:39 -0700 Subject: [PATCH] Added eddystone example --- docs/SUMMARY.md | 12 ++++++++++++ docs/examples.md | 10 ++++++++++ docs/examples/eddystone-beacon.md | 14 ++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 docs/examples/eddystone-beacon.md 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 +```