summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-16 21:45:31 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-16 21:45:31 +0100
commit817e7fdbb7f7259c0c8ef53002f13a38bc5de734 (patch)
treec9b8ec99026b5439623d8c6e0ba83a4d804afe09 /README.md
parente134b03803f8b5fb9315381040c160e6a2b50bb5 (diff)
Remove adc_counts; only work with lx output for now
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index 9960e2d..35120e4 100644
--- a/README.md
+++ b/README.md
@@ -41,13 +41,12 @@ temt6000 = require("temt6000")
-- can be called as often as the ADC permits
function some_timer_callback()
- local lx, raw = temt6000.read()
+ local lx = temt6000.read()
if lx ~= nil then
-- lx: estimated illuminance [lx]
- -- raw: raw ADC counts
- -- Note that lx is limited to a usable range of about 20 to 2500 lx.
- -- Darkness cannot be detected properly,
- -- anything brighter than ~2500 lx will be reported as 2500 lx.
+ -- Note that lx is limited to a usable range of about 20 to 1000 lx.
+ -- Darkness cannot always be detected reliably,
+ -- anything brighter than ~1024 lx will be reported as 1024 lx.
else
print("TEMT6000 error")
end