Added eddystone example
This commit is contained in:
parent
c5ab068dc3
commit
b59b05df53
@ -33,6 +33,18 @@
|
|||||||
* [Plot analog pin](/examples/plot-analog-pin)
|
* [Plot analog pin](/examples/plot-analog-pin)
|
||||||
* [Servo Calibrator](/examples/servo-calibrator)
|
* [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](/reference)
|
* [Reference](/reference)
|
||||||
|
@ -49,3 +49,13 @@ Here are some fun programs for your @boardname@!
|
|||||||
"url":"/examples/servo-calibrator"
|
"url":"/examples/servo-calibrator"
|
||||||
}]
|
}]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Bluetooth
|
||||||
|
|
||||||
|
```codecard
|
||||||
|
[{
|
||||||
|
"name": "Eddystone Beacon",
|
||||||
|
"description": "Beacon that beams a URL",
|
||||||
|
"url": "/examples/eddystone-beacon"
|
||||||
|
}]
|
||||||
|
```
|
14
docs/examples/eddystone-beacon.md
Normal file
14
docs/examples/eddystone-beacon.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Eddystone Beacon
|
||||||
|
|
||||||
|
```blocks
|
||||||
|
led.enable(false)
|
||||||
|
bluetooth.advertiseUrl(
|
||||||
|
"https://makecode.com",
|
||||||
|
7,
|
||||||
|
false
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
```package
|
||||||
|
device
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user