Skip to content

haywiremk/arduino-hx711

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino HX711 library for Mongoose OS

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