Skip to content

bseilhan/mos-hx711

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HX711 library for Mongoose OS

This is my attempt at adapting the arduino-hx711 library into a native mongoose os one.

Example code for JS

load('api_config.js');
load('api_events.js');
load('api_gpio.js');
load('api_mqtt.js');
load('api_net.js');
load('api_sys.js');
load('api_timer.js');
load('api_arduino_hx711.js');
let dataPin = 12;
let clkPin=14;

let sensor = HX711.init(dataPin, clkPin, 128);

// Print reading every second
Timer.set(1000 /* 1 sec */, Timer.REPEAT, function() {
  let value = sensor.read_average(4);
  print('HX711: ', value);
}, null);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.7%
  • JavaScript 18.6%
  • C 0.7%