documented hx711
This commit is contained in:
parent
cf079fa333
commit
c298a5cf60
10
README.md
10
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()
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue