diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-16 21:45:31 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-16 21:45:31 +0100 |
commit | 817e7fdbb7f7259c0c8ef53002f13a38bc5de734 (patch) | |
tree | c9b8ec99026b5439623d8c6e0ba83a4d804afe09 /temt6000.lua | |
parent | e134b03803f8b5fb9315381040c160e6a2b50bb5 (diff) |
Remove adc_counts; only work with lx output for now
Diffstat (limited to 'temt6000.lua')
-rw-r--r-- | temt6000.lua | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/temt6000.lua b/temt6000.lua index 69c7110..511e5aa 100644 --- a/temt6000.lua +++ b/temt6000.lua @@ -1,17 +1,7 @@ local temt6000 = {} function temt6000.read() - local raw = adc.read(0) - if raw < 70 then - return raw, raw - end - if raw == 1024 then - return 2500, raw - end - if raw < 300 then - return (raw-70) * 2, raw - end - return raw * 2, raw + return adc.read(0) end return temt6000 |