From c298a5cf6050e91425a15896947dae41911ede94 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 8 Oct 2015 20:43:57 -0700 Subject: [PATCH] documented hx711 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5580c61c..c5f50aae 100644 --- a/README.md +++ b/README.md @@ -573,3 +573,13 @@ value = { true, { foo = "bar" } } json_text = cjson.encode(value) -- Returns: '[true,{"foo":"bar"}]' ``` + +####Read an HX711 load cell ADC. +Note: currently only chanel A with gain 128 is supported. +The HX711 is an inexpensive 24bit ADC with programmable 128x, 64x, and 32x gain. +```lua + -- Initialize the hx711 with clk and data pin assignments + hx711.init(5,6) + -- Read ch A with 128 gain. + raw_data = hx711.read() +```