https://github.com/webduinoio/webduino-bit-module-thermistor
🔌 Block Module for thermistor of Webduino:bit.
https://github.com/webduinoio/webduino-bit-module-thermistor
module thermistor webduino-bit
Last synced: 26 days ago
JSON representation
🔌 Block Module for thermistor of Webduino:bit.
- Host: GitHub
- URL: https://github.com/webduinoio/webduino-bit-module-thermistor
- Owner: webduinoio
- License: mit
- Created: 2018-03-22T09:39:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T09:01:29.000Z (about 7 years ago)
- Last Synced: 2025-10-13T12:53:39.797Z (5 months ago)
- Topics: module, thermistor, webduino-bit
- Language: JavaScript
- Homepage: https://webduino.io
- Size: 13.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webduino-bit-module-thermistor
Module for thermistor of Webduino:bit.
## Installation
#### bower
```sh
bower install https://github.com/webduinoio/webduino-bit-module-thermistor.git
```
#### Node.js
```sh
$ npm install webduino-bit-module-thermistor
```
## Usage
```javascript
let webduino = require('webduino-js');
require('webduino-bit-module-thermistor')(webduino);
const opts = {
board: 'Bit',
device: 'device_id',
transport: 'mqtt'
};
let board = new webduino.board[opts.board](opts);
board.once(webduino.BoardEvent.READY, (board) => {
board.samplingInterval = 250;
const thermistor = new webduino.module.Thermistor(board, 6);
thermistor.measure(function (val) {
console.log((Math.round(val * 100)) / 100);
});
});
```
## License
This project is licensed under the MIT license, see [LICENSE](LICENSE) for more information.