nodemcu-firmware/lua_examples
Nick Andrew 0a7b730e23 Support DS18S20 and fix negative temp handling
The DS18S20 has only 1 fractional bit whereas DS18B20 has 4, and their
temperature register alignment differs. Check the family code to choose
the correct multiplier for both devices.

Closes #610

Negative temperatures (less than 0°C) are returned as a sign-extended
two's complement number. Subtract 0x10000 to recover the proper
negative value.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
2015-11-16 23:32:20 +11:00
..
email Fixed bug where email text after CR and LF would not be read. Added example links, Fixed bug where send function could not be called more than once due to count variable. 2015-03-16 04:17:19 -05:00
mcp23008 Added I/O expander MCP23008 module and two examples: digital output with LEDS, and digital input with buttons. 2015-03-02 13:21:26 -06:00
mqtt add more mqtt example, add a mqtt subfolder 2015-04-06 00:05:08 +08:00
u8glib ensure backwards compatibility of exising api functions 2015-10-18 11:13:57 +02:00
ucglib ensure backwards compatibility of exising api functions 2015-10-18 11:13:57 +02:00
adc_rgb.lua ADC driving RGB LED; electronic mood ring 2015-05-31 09:08:07 -05:00
http_server.lua Rename http_server to http_server.lua 2015-05-31 09:09:23 -05:00
irsend.lua Update irsend.lua 2015-02-13 11:13:00 +05:30
make_phone_call.lua Added phone calls and sms example. 2015-03-23 21:57:54 -05:00
myfile.lua rename folder name to pre_build 2014-12-22 20:28:37 +08:00
onewire-ds18b20.lua Support DS18S20 and fix negative temp handling 2015-11-16 23:32:20 +11:00
send_text_message.lua Added phone calls and sms example. 2015-03-23 21:57:54 -05:00
tcp2uart.lua add tcp2uart.lua example 2015-01-23 17:12:54 +08:00
telnet.lua ver 0.9.5 reports error in tmr.alarm() 2015-02-20 20:24:00 +01:00
telnet2.lua rename folder name to pre_build 2014-12-22 20:28:37 +08:00
webap_toggle_pin.lua add example webap_toggle_pin.lua from #53. fix #53 2015-01-08 17:06:50 +08:00
yet-another-bmp085.lua switch require() to dofile() to ease memory cleanup 2015-02-06 22:22:09 +03:00
yet-another-dht22.lua switch require() to dofile() to ease memory cleanup 2015-02-06 22:22:09 +03:00
yet-another-ds18b20.lua switch require() to dofile() to ease memory cleanup 2015-02-06 22:22:09 +03:00