Added eddystone example

This commit is contained in:
Peli de Halleux 2017-03-27 16:25:39 -07:00
parent c5ab068dc3
commit b59b05df53
3 changed files with 36 additions and 0 deletions

View File

@ -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)

View File

@ -49,3 +49,13 @@ Here are some fun programs for your @boardname@!
"url":"/examples/servo-calibrator"
}]
```
## Bluetooth
```codecard
[{
"name": "Eddystone Beacon",
"description": "Beacon that beams a URL",
"url": "/examples/eddystone-beacon"
}]
```

View File

@ -0,0 +1,14 @@
# Eddystone Beacon
```blocks
led.enable(false)
bluetooth.advertiseUrl(
"https://makecode.com",
7,
false
)
```
```package
device
```