Skip to content

syntheticore/wavetape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wavetape.js

npm version

Measure distances using your mobile device's microphone and speaker

Installation

npm install wavetape --save

Usage

var Wavetape = require('wavetape');

var echolot = new Wavetape();
echolot.start(function(distance) {
  console.log("The closest obstacle is now " + distance.toFixed(2) + " meters away");
  echolot.stop();
});

## License

MIT

About

Measure distances using your mobile device's microphone and speaker

Resources

License

Stars

Watchers

Forks

Packages

No packages published