Commit Graph

368 Commits

Author SHA1 Message Date
Arnim Läuger e9bf51eb8f
add support for sdmmc cards in sd-spi mode (#2644) 2019-02-10 10:11:13 +01:00
devsaurus e756dbce9c remove table-based (un)sunscribe from mqtt docs and provide example code 2019-01-31 22:35:21 +01:00
Javier Peletier 56f19e44c3 ESP32: MQTT module rewrite (#2629)
* mqtt: first pass

* mqtt: correct gc during callback bug

* mqtt: document and cleanup

* mqtt: separate lnodeaux due to copyright

* mqtt: rename lnodeaux methods

* mqtt: update docs

* mqtt: fix copyright in lnodeaux.c

* mqtt: refactor and cleanup

* mqtt: use ESP logging
2019-01-29 22:36:29 +01:00
Javier Peletier 577e2ea8b2 uart: added uart.getconfig() (#2633) 2019-01-29 22:28:37 +01:00
devsaurus 8f6f5904a3 fix example 2019-01-20 12:49:00 +01:00
Javier Peletier 746f519c47 ESP32 crypto module (#2607) 2019-01-18 12:55:26 +01:00
devsaurus fa35e02481 update fatfs to 0.13c 2019-01-17 21:12:08 +01:00
Marcel Stör b5f15f8ce1 Fix source reference 2019-01-16 23:31:18 +01:00
Marcel Stör 5750da121c Re-organize documentation
Drop support for localized content, #2213

Restructure some content to match more closely what we have in master, #2542
2019-01-13 21:30:28 +01:00
Marcel Stör eb8d8b588a Add note about Git submodules for Docker build 2018-12-20 21:24:53 +01:00
Skirmantas Lauzikas 3257e557d4 ESP32: add support for RS485 (#2559)
* ESP32: add support for RS485

This commit adds support for switching UART mode to RS485/IRDA.
Also included are patches for memory leaks then handling UART events other than data.

* ESP32: Documentation for uart.setmode()
2018-11-30 12:07:05 +01:00
Skirmantas Lauzikas 794a07bb51 ESP32: Add time module (#2561)
* ESP32: Add time modules

New time module for manipulating system time/ calendar and controlling SNTP server

* ESP32: Time module documentation & style fixes
* added documentation for time modules
* style fixes as pointed out by @devsaurus

* ESP32: Time module small fixes
* Couple small fixes
2018-11-26 21:03:23 +01:00
Marcel Stör 5696b631fd Add Docker option 2018-11-26 09:51:10 +01:00
Arnim Läuger 9bd8df4693 Use custom parition table with 1.5MB for firmware (#2567) 2018-11-23 20:16:36 +01:00
Skirmantas Lauzikas 423c733db8 ESP32: Add SJSON module (#2562)
* Esp32: Add SJSON module

This adds SJSON module taken directly from master

* ESP32: Fixes for sjson lib
Fixed compilation not including config header, thus braking some of libs functionality

* ESP32: Upgraded SJSON to master
2018-11-22 20:58:27 +01:00
devsaurus c9e7dde5d4 fix utf8 nbsp 2018-11-15 22:22:37 +01:00
tomsci 72d28fa86e Adding qrcodegen module for generating QR Codes (#2543)
* Adding qrcodegen module for generating QR Codes

* Added LUA_MODULE_QRCODEGEN KConfig

* Changed qrcodegen.encodeText() to use an options table

Created common.h with new option table helper fns.

* Reworked http.c to use new common.h options table APIs
2018-11-15 22:17:43 +01:00
tomsci 1cb1aff4cd ESP32: Add Sodium module (#2550)
* Add Sodium module

* Split sodium API into subtables; updated docs

* Fixed refactored names of crypto_box fns
2018-11-15 18:04:00 +01:00
tomsci d2345f2beb esp32: Add node.uptime() function using esp_timer_get_time() (#2533)
* esp32: Reinstate tmr.now() function using esp_timer_get_time()

Also added larger limit before wrapping if Lua's number type supports
it.

* Renamed tmr.now() to node.uptime()

Added second return value to indicate timer wrap
2018-11-10 14:53:10 +01:00
tomsci 5db5d8edeb Changed ESP32 http user agent to "NodeMCU (ESP32)" (#2551) 2018-11-08 21:14:15 +01:00
tomsci 73b13e4197 Add ESP32 http module (#2540)
* ESP32: Added http module

* add asynchronous flavor for context:request()

(cherry picked from commit e65b90cc8fc5296f7fe6cae1978835e06a9f44bb)

* http: More asynchronous support, more options

* Fix docs typo

* Code review comments from @devsaurus

Fixes some cleanup issues with asynchronous mode

* Added http.md to mkdocs.yml

* Align connection:close() to template
2018-11-08 20:24:18 +01:00
devsaurus 30ada6f084 add i2s.mute() 2018-11-02 22:31:49 +01:00
tomsci 48b9518d76 Add object-based file API to dev-esp32 branch (#2524)
* #2521: Add object-based file API to dev-esp32 branch

Merged in from master@c708828bbe853764b9de58fb8113a70f5a24002d minus
some VFS changes and similar.

* Updated file docs from master

Omitting:
* file.mount()
* reference to rtctime.epoch2cal()
* file.stat()

As these are not available in dev-esp32 branch

Unsure about whether "directories are not supported" is still true
2018-10-29 07:09:41 +01:00
devsaurus 96adbabf5c doc fixes 2018-10-14 18:13:00 +02:00
devsaurus daa5848431 rework parts of I2S 2018-10-14 18:05:48 +02:00
devsaurus 5e64def682 add dac module 2018-10-14 12:29:30 +02:00
zelll fb1ac33f19 i2s docs 2018-10-13 14:12:02 +02:00
zelll 34e486fb7f i2s extension 2018-10-13 14:10:03 +02:00
devsaurus 166474b9f1 clarify unsupported transport modes 2018-10-08 21:29:24 +02:00
devsaurus 45c63a8236 Add ucg module. 2018-10-07 16:31:28 +02:00
devsaurus c1de414ba1 fix danglink link in tmr.md 2018-10-07 16:17:38 +02:00
devsaurus 0802418978 fix stale link in file.md 2018-10-07 16:15:12 +02:00
devsaurus 209fe91ba7 add encoder doc 2018-10-07 16:08:45 +02:00
devsaurus 9ab7e7fa34 fix wrong link to index.md 2018-10-07 16:04:12 +02:00
devsaurus 4b1551af49 update u8g2 to v2.23.18 2018-10-07 15:04:03 +02:00
Arnim Läuger bf5808495c
Merge pull request #2501 from ryanplusplus/mqtt-rometatable
Mqtt rometatable
2018-10-02 19:00:04 +02:00
devsaurus 45be28cf60 fix and document template partition table 2018-04-15 22:55:28 +02:00
Andrew Gough ba57b0fa7e Add slightly modified version of standard MQTT docs. Note that in most
cases the API is identical [see note in unsubscribe()]
2018-03-19 21:06:58 +11:00
Marcel Stör 6d19510e79 Add submodule init 2018-03-06 23:28:05 +01:00
devsaurus bded035406 clarify tools status 2017-12-31 11:53:30 +01:00
Marcel Stör 3eb8d4f1d0 Clean-up the uploader tools selection 2017-12-28 23:56:13 +01:00
John Lauer 3ddce2d75d Add ChiliPeppr as option for IDE (#2192) 2017-12-28 23:15:47 +01:00
Ryan Hartlage e2a4c1bc5f Fix link to ESP32 hardware page (#2196) 2017-12-16 19:03:05 -05:00
devsaurus 0a3ea42ff9 list new u8g2 device constructors 2017-11-18 17:54:51 +01:00
Arnim Läuger 5995ff6bec
fix spi-only listing 2017-11-18 17:44:25 +01:00
devsaurus 23e9fcccfa update to u8g2 2.19.8 2017-11-18 17:38:21 +01:00
Arnim Läuger c117092da6 fixes and optional arguments clarification 2017-09-02 11:47:13 +02:00
devsaurus 9f8664b8e6 Updated ESP-IDF to latest and adapt spi master. 2017-09-02 11:38:19 +02:00
Johny Mattsson d5d8990bf2 Merge pull request #2021 from larsstenberg/dev-esp32-getmac
ESP32: added functions wifi.sta.getmac() and wifi.ap.getmac()
2017-08-17 12:36:42 +10:00
devsaurus 4b5e124244 update to u8g2 2.16.9 2017-08-16 10:56:25 +02:00
larsstenberg 40e0be29ee ESP32: Ledc driver module (#2027)
* Inital commit for supporting ledc driver

* Added documentation. More fade functions and better naming of constants

* Better field checking during setup. Updated documentation

* Reworked LEDC module to be used with an object model to decrease repetition of parameters
2017-08-11 19:11:12 +02:00
devsaurus 64f8ac2876 u8g2: add rfb support 2017-07-27 23:29:37 +02:00
Arnim Läuger b3eaba86e4 Add net module docs (#2053) 2017-07-25 22:23:34 +02:00
Marcel Stör 64eb79348a Change strike-through markdown notation 2017-07-21 21:14:54 +02:00
Lars Stenberg e6eb743b88 Added functions wifi.sta.getmac() and wifi.ap.getmac() 2017-06-30 23:55:43 +02:00
devsaurus a8ff8f059d Add u8g2 module. 2017-06-13 18:38:09 +02:00
zelll 329bd73b63 ESP32: uart 1/2 supports (#1982)
* uart 1/2

* call -> pcall in uart_on_* functions

* fix docs

* fixed console driver when using custom console uart

* fixed line_inverse and error callback

* fixed a crash when uart.start() called more than one time
2017-06-13 18:33:32 +02:00
devsaurus 819284530e Add spi master. 2017-05-14 18:00:40 +02:00
Arnim Läuger d8b55051c7 Formatting fix ws2812 doc 2017-05-13 11:55:55 +02:00
devsaurus 52ed168cbe fix gpio doc, refer to gpio overview from module docs 2017-05-13 11:53:01 +02:00
Arnim Läuger 209bde603d Fix gpio pin mask generation and clarify available gpios. (#1965) 2017-05-12 11:10:44 +10:00
zelll ff30f479e1 ESP32: CAN module (#1958)
* can extension

* can extension: bit timing and filter

* can -> CAN

* post CAN data callback

* CAN docs

* CAN: fixed receive, filter, extended frame

* reorder fn in can.md, remove driver_can/Kconfig

* fixed a leak when can.stop()
2017-05-07 09:35:17 +02:00
Arnim Läuger 2acfa53ee8 add ws2812 compatibility layer (#1947) 2017-05-06 17:36:14 +02:00
devsaurus fb62011ddf Add sdmmc module and enable fatfs. 2017-04-30 22:49:54 +02:00
devsaurus 1ab8f526b0 fix ws2812 doc 2017-04-27 22:42:10 +02:00
zelll b7fa8c592f ADC extension for ESP32 (#1927)
* added adc extension

* add adc_number, for adc2
2017-04-24 21:36:01 +02:00
Arnim Läuger a243e290a9 Add note about required make version. 2017-04-23 17:43:10 +02:00
Arnim Läuger b72cb34d6e Add gpio doc. (#1909)
* Add gpio doc.
2017-04-15 20:07:55 +10:00
Arnim Läuger 2c30644835 Fix list formatting in ws2812 doc. 2017-04-14 20:08:38 +02:00
devsaurus 1866e6f457 Add ws2812 module. 2017-04-14 19:56:27 +02:00
devsaurus 927ee7fc5f Add dht module. 2017-04-14 19:18:38 +02:00
Arnim Läuger 666b62c784 Note about timer resolution 2017-03-27 10:31:25 +02:00
Arnim Läuger 1935a642b2 Add ESP32 README.md and build/flash docs (#1873) 2017-03-24 23:51:13 +01:00
devsaurus 961c1c72b2 Add ow module. 2017-03-17 07:50:31 +01:00
devsaurus b3ec03e1fe fix i2c and wifi doc formatting 2017-03-08 17:56:46 +01:00
devsaurus 2b98037fa9 refine ack handling for i2c hw master 2017-03-08 16:38:43 +01:00
devsaurus e203a5829c add tmr module 2017-03-07 20:54:48 +01:00
devsaurus e3e0d88fc1 fix i2c doc 2017-03-02 21:47:22 +01:00
devsaurus 859e1a3004 first draft implementation of i2c slave 2017-03-02 21:37:13 +01:00
Johny Mattsson dbc8d791c6 Added node.chipid() based on esptool's formula. 2017-03-02 22:29:40 +11:00
devsaurus f5632f41f9 extend i2c master with hardware interfaces for synchronous and asynchronous operation 2017-02-04 20:14:13 +01:00
devsaurus 381726f103 add i2c module 2017-02-02 21:40:36 +01:00
devsaurus 4fcb1404b6 add simga_delta module 2017-01-13 22:34:24 +01:00
Johny Mattsson ea59007bc3 WiFi module documentation and updates.
Addresses one point of #1615.
2017-01-03 12:57:45 +11:00
Johny Mattsson 3fe7f77512 Imported 'bit' module from dev branch. 2016-11-17 21:56:51 +11:00
Johny Mattsson 6ce3e7a551 Imported 'struct' module from dev branch. 2016-11-17 21:48:31 +11:00
Johny Mattsson 423cb64503 Updated developer faq. 2016-10-05 16:03:12 +11:00
Johny Mattsson f9bf50cf03 Simple BlueTooth module for BT LE advertisements. 2016-09-29 17:02:40 +10:00
Johny Mattsson 32e65da3ae Grabbed the docs for the file module. 2016-09-22 20:13:51 +10:00
Johny Mattsson 1f073e8b3f Added notes on stdio. 2016-09-22 18:20:40 +10:00
Johny Mattsson 55e8c65b8d More developer notes. 2016-09-22 11:42:13 +10:00
Johny Mattsson fe602d2d7e Removed all currently-unused code & docs.
Heading towards having only ESP32-aware/capable code in this branch.
2016-09-21 13:47:44 +10:00
Johny Mattsson ddeb26c458 Start of developer docs for RTOS/ESP32. 2016-09-21 13:31:43 +10:00
Johny Mattsson af9df2ae98 Fixed output redirection regression (and improved it). 2016-06-02 18:29:00 +10:00
Marcel Stör afd974c5e9 Correct socket:send example, fixes #1303 2016-05-22 21:50:57 +02:00
Marcel Stör ab6c2c3924 Add small clarification for 'system restart' 2016-05-18 22:27:23 +02:00
Johny Mattsson 30d354c290 Rework ADC mode setting approach (#1285)
- Stop fighting against the SDK in terms of owning/writing the init_data block.
  NodeMCU included a default init_data block because originally the SDK did
  not, but by now it's not needed.

- Expose a way to reconfigure the ADC mode from Lua land. With most people
  using the cloud builder and not able to change the #define for byte 107
  this has been a pain point.

- Less confusion about which init_data has been used. Lua code can now simply
  state what mode it wants the ADC to be in, and not worry about the rest of
  the init_data complexities such as the init_data changing location due to
  flashing with wrong flash_size setting, or doing/not doing a chip-erase
  before loading new NodeMCU firmware.
2016-05-18 21:45:15 +02:00
Marcel Stör 9c9237ef5a Small syntax fix in UART documentation 2016-05-16 22:25:07 +02:00
devsaurus c0f1e028a6 fix link to net module 2016-05-15 17:08:45 +02:00
dnc40085 1b4234e2d3 Add details to WiFi module documentation (#1294)
Update descriptions of `wifi.setmode`, `wifi.sta.config` and `wifi.ap.config` to inform user of configuration persistence.
2016-05-14 23:04:20 +02:00