Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
c298a5cf
Commit
c298a5cf
authored
Oct 08, 2015
by
chris
Browse files
documented hx711
parent
cf079fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c298a5cf
...
...
@@ -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
()
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment