Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Microsoft/pxt-bluetooth-temperature-sensor
A Bluetooth service to expose a temperature reading.
https://github.com/Microsoft/pxt-bluetooth-temperature-sensor
makecode microbit pxt
Last synced: 3 months ago
JSON representation
A Bluetooth service to expose a temperature reading.
- Host: GitHub
- URL: https://github.com/Microsoft/pxt-bluetooth-temperature-sensor
- Owner: microsoft
- License: mit
- Created: 2017-03-31T14:48:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T18:43:46.000Z (about 1 year ago)
- Last Synced: 2024-04-02T13:13:07.308Z (3 months ago)
- Topics: makecode, microbit, pxt
- Language: C++
- Homepage: https://https://pxt.microbit.org/pkg/Microsoft/pxt-bluetooth-temperature-sensor
- Size: 16.6 KB
- Stars: 29
- Watchers: 10
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-microbit-zh - Bluetooth Temperature Sensor - 温度传感器的蓝牙驱动. (编程 / JavaScript 和 MakeCode)
README
# bluetooth temperature sensor service [![Build Status](https://travis-ci.org/Microsoft/pxt-bluetooth-temperature-sensor.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-bluetooth-temperature-sensor)
A Bluetooth service to expose a temperature reading.
## Usage
This package allows to create a Bluetooth temperature sensor and provide the data from
any custom sensor attached to the @boardname@. In fact, it can be used to stream any data!```blocks
bluetooth.startTemperatureSensorService(() => {
bluetooth.setTemperatureSensorValue(input.lightLevel());
})
```Then use the temperature charting from [Bitty data logger](http://www.bittysoftware.com/apps/bitty_data_logger.html) to visualize it.
## Supported targets
* for PXT/microbit
(The metadata above is needed for package search.)```package
bluetooth
bluetooth-temperature-sensor
```## License
MIT
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.