Commit Graph

67 Commits

Author SHA1 Message Date
devsaurus a8ff8f059d Add u8g2 module. 2017-06-13 18:38:09 +02:00
Jonathan Karras 784fefebe7 Update DS18b20 examples (#1851)
- Remove old non-async examples from `lua-examples`.
- Rename `ds18b20.EN.md` to `README.md`
- Change remaining `toBase64` calls to the more standard `toHex` call.
- Fix some spelling and markdown formatting issues in README file.

Addresses issue #1841
2017-03-17 07:50:31 +01:00
Arnim Läuger 25b4285c4d update examples to task posting (#1249) 2016-04-18 13:35:07 +02:00
UncleRedz 7e0b58b950 Corrected typo in u8g documentation and added a new u8g example which demonstrate a draw loop that works correctly with WiFi. 2016-03-29 06:18:26 +02:00
devsaurus ee96273191 Remove lua modules with equivalent ones in app/modules. 2016-02-14 23:03:33 +01:00
Marcel Stör 08921c9871 Transfer HTTP client examples to lua_examples/
Fixes #941
2016-01-25 20:33:21 +01:00
Terry Ellison 94402443f2 Merge pull request #910 from devsaurus/dev-gcfix
Remove superfluous collectgarbage() in webap example
2016-01-07 22:50:45 +00:00
devsaurus 07c1a28d4d remove ; and dangling spaces 2016-01-07 23:08:44 +01:00
devsaurus 626e7d3c91 close connection on sent instead on receive 2016-01-07 23:00:24 +01:00
devsaurus 5a6975b343 remove superfluous collectgarbage() 2016-01-06 23:51:21 +01:00
devsaurus 87351a2d10 consolidate telnet example 2016-01-06 23:18:42 +01:00
devsaurus ff3926175c add fifo to fit new sdk behavior 2016-01-06 22:18:11 +01:00
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
devsaurus 26f4bc7957 ensure backwards compatibility of exising api functions 2015-10-18 11:13:57 +02:00
devsaurus c3680f8291 update examples and doc to api change 2015-10-18 11:13:56 +02:00
devsaurus 55e8565a2d adapt examples to clock_div parameter 2015-10-04 17:03:18 +02:00
devsaurus 5a29bab438 Merge pull request #655 from devsaurus/dev-ucglib
Add bindings for ucglib
2015-10-03 20:24:24 +02:00
devsaurus 4e235d8461 improve u8g lua examples 2015-09-24 23:18:34 +02:00
devsaurus 154b456f11 extend ucg example with ST7735 display 2015-09-17 22:37:31 +02:00
devsaurus f0d581223f UcgLogo example - fix drawGlyph and drawString 2015-09-17 21:53:48 +02:00
devsaurus 5c93ba017e finish GraphicsTest.lua 2015-09-17 21:53:48 +02:00
devsaurus ac1b5a1173 extend ucg module 2015-09-17 21:53:48 +02:00
devsaurus 6fd106afac added more displays:
sh1106_128x64_i2c
    ssd1306_64x48_i2c
    ssd1309_128x64_i2c
    ssd1327_96x96_gr_i2c
    uc1611_dogm240_i2c
    uc1611_dogxl240_i2c
    ld7032_60x32_hw_spi
    pcd8544_84x48_hw_spi
    pcf8812_96x65_hw_spi
    sh1106_128x64_hw_spi
    ssd1306_64x48_hw_spi
    ssd1309_128x64_hw_spi
    ssd1322_nhd31oled_bw_hw_spi
    ssd1322_nhd31oled_gr_hw_spi
    ssd1325_nhd27oled_bw_hw_spi
    ssd1325_nhd27oled_gr_hw_spi
    ssd1327_96x96_gr_hw_spi
    ssd1351_128x128_332_hw_spi
    ssd1351_128x128gh_332_hw_spi
    ssd1351_128x128_hicolor_hw_spi
    ssd1351_128x128gh_hicolor_hw_spi
    ssd1353_160x128_332_hw_spi
    ssd1353_160x128_hicolor_hw_spi
    st7565_64128n_hw_spi
    st7565_dogm128_hw_spi
    st7565_dogm132_hw_spi
    st7565_lm6059_hw_spi
    st7565_lm6063_hw_spi
    st7565_nhd_c12832_hw_spi
    st7565_nhd_c12864_hw_spi
    uc1601_c128032_hw_spi
    uc1608_240x128_hw_spi
    uc1608_240x64_hw_spi
    uc1610_dogxl160_bw_hw_spi
    uc1610_dogxl160_gr_hw_spi
    uc1611_dogm240_hw_spi
    uc1611_dogxl240_hw_spi
    uc1701_dogs102_hw_spi
    uc1701_mini12864_hw_spi
2015-07-20 23:11:13 +02:00
devsaurus 8bd3d7d2bf introduce lua_api_name parameter when building the display table
keeps the API as before and gets rid of hw_spi vs sw_spi topics
2015-07-19 21:57:14 +02:00
devsaurus 1bc156e4d1 move display constructors into template-based functions
+ uniform generaration
+ addition of further displays
- slight unneccesary heap allocation when display drivers are included but not used
2015-07-16 23:23:43 +02:00
HuangRui 3cd5a6a1ed Merge branch 'master' of https://github.com/bruceme/nodemcu-firmware into dev
Conflicts:
	app/modules/net.c
2015-06-04 15:04:12 +08:00
BruceMe 46a07700fb Rename http_server to http_server.lua 2015-05-31 09:09:23 -05:00
BruceMe d1fe4e620a HTTP Server for LED/Servo
A simple yet robust HTTP server that can parse GET parameters and turn on/off a light or set the position of a servo.
2015-05-31 09:09:05 -05:00
BruceMe bcfe753341 ADC driving RGB LED; electronic mood ring
It's as simple as ADC (analog to digital converter); easy as RGB (Color LED)...

This example can be run on any ESP8266, but it runs out of the box on the ebay search for.. "ESP8266 Battery Holder" with the light sensor on ADC0 and RGB LED.  Fun and easy way to do more than blink a light.
2015-05-31 09:08:07 -05:00
devsaurus 897c8cd169 further reduce memory for u8g graphics test 2015-04-24 21:57:27 +02:00
devsaurus 4cd2b554ec Merge remote-tracking branch 'upstream/dev' into dev 2015-04-24 20:34:35 +02:00
devsaurus fc19725fef make variables local to save heap 2015-04-21 21:48:12 +02:00
funshine 450b79dbde add more mqtt example, add a mqtt subfolder 2015-04-06 00:05:08 +08:00
funshine bcbde08bf7 fix mqtt keepalive ping, add a example for mqtt in lua_examples. 2015-04-05 02:22:51 +08:00
AllAboutEE 1c267dfac7 Added phone calls and sms example. 2015-03-23 21:57:54 -05:00
devsaurus b34a8b46fe use RES pin for examples 2015-03-17 21:03:15 +01:00
devsaurus 87598c5dfe Merge remote-tracking branch 'upstream/dev' into dev 2015-03-17 20:35:39 +01:00
AllAboutEE 6c092e42ed 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
AllAboutEE 0144e40cf0 Added comments and links to learn more about SMTP. 2015-03-16 00:39:29 -05:00
AllAboutEE be4bb14e7c Added comments to send_email_smtp and removed an unecessary variable. Fixed mispelling in comment in read_email_imap.lua 2015-03-13 20:51:19 -05:00
AllAboutEE 998f96a4d6 Added base64 module needed to encode username and password. Added SMTP send email example. 2015-03-13 14:39:14 -05:00
AllAboutEE 72f767445f Working example of IMAP read email module. 2015-03-12 11:27:01 -05:00
AllAboutEE 56aa416535 Added imap lua module and updated read_email_imap.lua example to use module. There is a bug where Examine is not sent sometimes. 2015-03-12 01:16:02 -05:00
devsaurus 88815012d4 move u8glib examples to subfolder 2015-03-11 21:56:20 +01:00
devsaurus 4f55ee4e34 validate SPI comm interface with ssd1306_128x64_spi 2015-03-11 21:53:45 +01:00
AllAboutEE 36d42010c2 Added IMAP read email example. The example is working but the output sections are not 100% correct. Parsing the output and waiting for OK message from server is needed. 2015-03-11 08:32:00 -05:00
devsaurus 315d1a1696 Merge remote-tracking branch 'upstream/dev' into dev 2015-03-04 22:18:26 +01:00
funshine 0f6046d8a2 Merge branch 'master' into dev 2015-03-03 14:46:08 +08:00
AllAboutEE 34d0b773d9 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
Damian 888fbdf338 ver 0.9.5 reports error in tmr.alarm()
There was no alarm ID.
2015-02-20 20:24:00 +01:00