Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gueei/node-ms5803

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ms5803

Use MS5803-14BA on nodejs, e.g. RPi or similar SBC Tested to run on Raspberry PI 3

Installation

npm install ms5803
var ms5803 = require('ms5803')

var sensor = new ms5803();

Usage

This module supports both Promise style and node callback style of usage. Check the example.js for the basic usage.

var ms5803 = require('ms5803');
var sensor = new ms5803();

sensor.reset()
	.then(sensor.begin)
	.then((c)=>{
		console.log("calibration array: " + c);
	})
	.then(()=>{
		setInterval(()=>{
			sensor.measure()
			.then((r)=>{
				console.log("sensor readings:" + r);
			})
		}, 1000);
	})
	.catch((error)=>{
		console.error(error);
	});

Acknowledgements

About

Use MS5803 on nodejs, e.g. RPi or similar SBC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.