Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d0851d43
Commit
d0851d43
authored
Oct 30, 2015
by
chris
Browse files
doc hx711 update
parent
140bcee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d0851d43
...
@@ -578,8 +578,8 @@ json_text = cjson.encode(value)
...
@@ -578,8 +578,8 @@ json_text = cjson.encode(value)
Note: currently only chanel A with gain 128 is supported.
Note: currently only chanel A with gain 128 is supported.
The HX711 is an inexpensive 24bit ADC with programmable 128x, 64x, and 32x gain.
The HX711 is an inexpensive 24bit ADC with programmable 128x, 64x, and 32x gain.
```
lua
```
lua
-- Initialize the hx711 with clk
and data pin assignments
-- Initialize the hx711 with clk
on pin 5 and data on pin 6
hx711
.
init
(
5
,
6
)
hx711
.
init
(
5
,
6
)
-- Read ch A with 128 gain.
-- Read ch A with 128 gain.
raw_data
=
hx711
.
read
()
raw_data
=
hx711
.
read
(
0
)
```
```
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