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() +```