Commit Graph

410 Commits

Author SHA1 Message Date
Johny Mattsson e52e0a8e84 Pulled in the 5.1+5.3 docs from the esp8266 branch.
With minor modifications to drop ESP8266 specific information not
applicable to the ESP32 series. Further corrections welcome.
2021-08-22 19:25:39 +10:00
Marcel Stör 3a6961ccc7
Update RTD MkDocs (#3457)
* Modernize docs

* Remove old style hacks

* Add comment
2021-08-16 15:27:56 +10:00
Johny Mattsson bc7b923646 Code cleanup to sort out warnings.
I2S constants have changed; docs updated.
2021-07-29 13:47:45 +10:00
Johny Mattsson dff32e8902 WiFi module updates.
- Added support for WPA3
- Evicted left-over broken WiFi auto-reconnect
- Updated docs
2021-07-28 19:09:19 +10:00
Johny Mattsson 06a0e3dc23 idf4: part 3.2 - fix bug in updated eth module
Updated docs to reflect new WiFi station connect behaviour.
2021-07-22 16:46:57 +10:00
Johny Mattsson 54a41149ea idf4: part 3.1 - sorting out the linker specifics
Now boots to the Lua prompt, and modules are included and findable.
2021-07-21 20:46:42 +10:00
Johny Mattsson d2f8121e22 idf4: part 2.2 - update wifi & eth modules to new APIs
Only compile-tested so far.

Of note is that the WiFi auto-connect (flag) functionality has been removed
from the IDF, and as a follow-on so has the "auto" field in the wifi config.

On the Ethernet side, support for the TLK110 PHY seems to have been removed,
but on the other hand there is now new support for several others.
2021-07-20 18:18:21 +10:00
Johny Mattsson 379a8eb844 idf4: updated build docs to note new ./install.sh step 2021-07-15 16:44:40 +10:00
Johny Mattsson 16ef39e255 idf4: overhaul to new build system, part 1 of 3
Yet to come:
  - part 2: dealing with deprecated and removed APIs
  - part 3: making it actually work again
2021-07-15 16:27:03 +10:00
serg3295 8e0e0cb31c
Fix ledc, otaupgrade, pulsecnt, sdmmc, sjson, touch docs (#3436)
ledc.md - formatting, add object name
otaupgrade.md - formatting, add 'Syntax' section
pulsecnt.md - formatting, fix syntax pulsecnt.create, add object name
sdmmc.md - fix typos
sjson.md - formatting, add `Parameters` section
touch.md - formatting, add object name, fix Returns in tp:read()
2021-05-23 16:29:01 +02:00
serg3295 39dc2e050f
Fix bit, bthci, can, encoder, eth, i2s docs (#3432)
* Fix bit, bthci, can, encoder, eth, i2s docs

* Fix bit, mqtt, qrcodegen, sigma-delta, sodium, time docs.

* Add object name in http.md
2021-05-19 21:02:49 +02:00
serg3295 1927b22c17
Fix adc, i2c, file, tmr docs (#3428) 2021-04-27 22:30:46 +02:00
Marcel Stör 3acb6b7c79
Add node.bootreason (#3413) 2021-04-02 08:03:17 +02:00
tomsci 6ba98f348d
Add uart.txflush() (#3390) 2021-02-14 08:43:20 +01:00
jmdasnoy fb12af06e7
Fix I2C timeout (#3377) 2021-01-22 13:01:21 +01:00
tomsci d5f0094576
Add node.sleep()(#3370)
Supporting wakeup from (non-EXT1) GPIO, UART, ULP, timer and touch
2021-01-17 09:00:12 +01:00
Kit Klein 830366188d
Add node.osoutput() method for ESP32 (#3363) 2021-01-05 12:34:35 +01:00
Nathaniel Wesley Filardo dd3b217df2
Kconfig: rename LUA_MODULE_* to NODEMCU_CMODULE_* (#3135)
Using the NODEMCU_ namespace prefix makes it obvious that these are not
part of Lua proper (contrast, e.g., LUA_BUILTIN_STRING).  Using
"CMODULE" gives us room to differentiate between modules whose
implementation is in C and whose implemenation is in Lua ("LMODULE").

The ESP8266 branch can adopt the same convention when it moves to
Kconfig; see https://github.com/nodemcu/nodemcu-firmware/issues/3130
2020-08-23 22:49:18 +02:00
Marcel Stör 572f731b61
Update build.md 2020-08-23 21:56:18 +02:00
tomsci fa2348f36b
Support for GPIO wakeup in node.dsleep() (#3115) 2020-08-22 10:32:45 +02:00
M.K 8db97c0f52
Fix method name encoder.fromBase64 in example code (#3247) 2020-08-22 10:31:08 +02:00
Javier Peletier 084d6cabc5
Add support for external modules (#3100) 2020-07-27 19:08:19 +02:00
kiritnarain 04e01fd4ef
Fix conflict between documentation and example for method newChannel() (#3184)
It now correctly uses ledc.newChannel() and saves the return value instead of invoking ledc.setup().
2020-06-30 13:52:12 +02:00
Javier Peletier f4887bf134
JTAG debugging quick guide for Linux (#3088) 2020-05-18 19:58:15 +02:00
tomsci b8e8ffa53a
Expose gpio_set_drive_capability API to Lua (#3099) 2020-05-18 19:56:43 +02:00
tomsci f7b8cf018e
Unref gpio.trig callbacks when type=INTR_DISABLE (#3072)
Fixes #2880
2020-04-27 14:29:08 +02:00
Kit Klein a8b46af905
Correct wifi auth types for esp32 (#3047)
Correcting the AP config auth types.  The ones defined in the current documentation don't seem to exist.
2020-02-26 12:30:22 +01:00
Marcel Stör 1e177194b0 Fix doc header 2020-02-11 23:30:20 +01:00
Marcel Stör 035bef406a Fix formatting and function sorting 2020-02-09 23:50:33 +01:00
John Lauer 9a5327cab1 Add touch sensor module (#2863)
* Touch module 1st checkin
* ESP32. Check-in 2 for Touch sensor module
* ESP32: Touch module. Sample Lua code.
* ESP32: Latest YouTube vid
* ESP32: Touch docs update
* Added opt_* methods for value retrieval
2019-10-27 19:49:56 +01:00
Arnim Läuger d20778ed09
Support eth boards without power pin, extend docs (#2855)
* fix handling of optional power pin

* add init example for wESP32

* add example for eth.on()
2019-08-12 22:31:19 +02:00
Javier Peletier b5146f8883 Added required libraries to build env setup instructions (#2844) 2019-07-23 18:38:27 +10:00
Johny Mattsson eaac369dec
LFS support for ESP32 NodeMCU (#2801)
* Port LFS from ESP8266 to ESP32
2019-07-22 19:13:43 +10:00
Arnim Läuger 7cb61a27d2 Esp32 eth (#2820)
Ethernet module added.
2019-07-20 12:47:43 +10:00
John Lauer fead54e744 Add video walk through of build process (#2826) 2019-07-10 19:55:19 +02:00
Johny Mattsson ca89bff073 OTA support for ESP32 (#2812)
* Implemented otaupgrade module.

* Added partition table example for otaupgrade.

* Copy-paste omission. Whoops.

* Updated otaupgrade docs after review.
2019-07-06 14:21:08 +02:00
Johny Mattsson e11087bfdf Improved crypto module for ESP32, now with HMAC (#2815)
* Leaner, meaner crypto module; now with HMAC

Based on my testing, mbedtls pulls in all its algorithm regardless of
whether the NodeMCU crypto module was using them or not. As such, the
space savings from omitting algorithms were only in the tens of bytes.

By switching to using the mbedtls generic message digest interface, the
crypto module itself could be shrunk in size and complexity. Despite
adding support for HMAC on all algorithms (plus including RIPEMD160),
this version is 330 bytes smaller.

* Updated crypto module docs.

* Removed superfluous brackets in crypto docs.

Copy-paste considered harmful... >.>
2019-07-04 23:24:59 +02:00
John Lauer 8b9794b99d ESP32: Pulse counter module released (#2739)
* ESP32: Added pulsecnt module

The pulsecnt module let's you use the ESP32's pulse counter capabilities from Lua.

* ESP32: Pulsecnt module. Better/faster callback.

Reduced the amount of callback variables to speed things up and shift more logic to Lua than in the C code.

* ESP32: Completed docs for pulsecnt

* ESP32: Final release of pulsecnt

* ESP32: Production release of pulsecnt

* ESP32: Release (tweaked docs)

* ESP32: Pulse Counter Release. Cleaned up .gitignore

* ESP32: Pulse counter release (changed ch1 gpio to int to match ch0)
2019-06-12 22:34:24 +02:00
Skirmantas Lauzikas 6d0e45793f ESP32: Add option to set IP/dns config (#2560)
* ESP32: Add option to set IP/dns config

This commit adds support for setting:
* Hostname
* Static IP / Dns server (Sta mode)
* Changing AP network ip config
* Setting DNS server IP for DHCP

* ESP32: Documentation for setting IP/dns/hostname config

* Documented new functions
* sethostname() now returns true if success
2019-06-10 16:33:29 +02:00
devsaurus 5faf76b762 update to u8g2 2.25.10
- new displays
- binding for updateDisplay() and updateDisplayArea()
- use user_ptr instead of hal workaround
2019-04-28 22:26:37 +02:00
mucek4 42036802fe Fixed http.post() example (#2734) 2019-04-22 11:39:14 +02:00
Arnim Läuger 2339726097
mqtt: add ceritificate handling to support server verification and mutual authentication (#2657)
* mqtt: add ceritificate handling to support server verification and mutual authentication

* remove superfluous include
2019-02-12 23:10:25 +01:00
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