Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

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
varms5803=require('ms5803')varsensor=newms5803();

Usage

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

varms5803=require('ms5803');varsensor=newms5803();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

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages