Add GPL license, better readme and flash-tool
Setting it up so it's a propper project which can be released. It's still not showing any temperature and there is no description of how to set up the hardware yet.
This commit is contained in:
parent
05d4799d7f
commit
4dc9e79f28
6 changed files with 727 additions and 7 deletions
12
ds18b20.lua
12
ds18b20.lua
|
@ -10,16 +10,16 @@
|
|||
local modname = ...
|
||||
local M = {}
|
||||
_G[modname] = M
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- Local used variables
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- DS18B20 dq pin
|
||||
local pin = nil
|
||||
-- DS18B20 default pin
|
||||
local defaultPin = 9
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- Local used modules
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- Table module
|
||||
local table = table
|
||||
-- String module
|
||||
|
@ -30,9 +30,9 @@ local ow = ow
|
|||
local tmr = tmr
|
||||
-- Limited to local environment
|
||||
setfenv(1,M)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- Implementation
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
C = 'C'
|
||||
F = 'F'
|
||||
K = 'K'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue