nodemcu-firmware/components/modules
Christoph Thelen 14cdff107f
Update rmt translator (#3629)
* Choose the number of RMT buffers in the ws2812 module.

The number of buffers required for optimal operation should be selected
by the ws2812 module, not the caller.

* Add parameters for RGB LED bit times.

This patch adds compatibility for different RGB LEDS besides the WS2812.
ESP evaluation boards like the ESP32-C3-DevKitM-1 use an SK68XXMINI-HS
RGB LED which does not respond to the timings of this module.
The patch adds optional parameters for the bit timings to the write
function. If the new parameters are not supplied, the old values are used.
An example for the SK68XXMINI-HS is provided in the documentation.

* Remove restrictions from RTM translator.

The old RMT translator was not able to split the bits of the source
data into the size requested by the RMT transmitter. Either all 8 bits
of an input byte were translated or none.
The new routine removes the restriction by delivering exactly the
requested amount of data to the transmitter, which results in a more
balanced buffering of translated data under load.

* Add a parameter for the RGB LED reset time.

This patch introduces a new optional parameter for the reset time
in the RGB LED communication. The default is 51.2 microseconds. A
value of 0 sends no reset signal, which allows a small optimisation
for consecutive write commands.

Please note that the reset time of the old code should be 50
microseconds, as the define WS2812_DURATION_RESET suggested. Due to the
restrictions of the old RMT translator routine, it was slightly
increased to 51.2 microseconds. This patch keeps the value of 51.2
microseconds to be as compatible as possible.

* Minimize the time drift between RMT channels.

Place all RMT channels in a group to minimize the time drift between
the signals. Please note that this feature is not available on all
platforms.

* Fix the description of the SK6812 LED in the example code.

The SK6812 expects the data for the green LED first, then red and
finally blue. It should be described as a GRB LED.
2024-02-07 17:56:17 -05:00
..
.gitignore Add support for external modules (#3100) 2020-07-27 19:08:19 +02:00
CMakeLists.txt Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
Kconfig Ported the rtcmem over to ESP32 (#3544) 2022-09-29 21:37:34 -04:00
adc.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
bit.c Make bit module handle 32/64bit integer configs. 2021-08-25 18:58:53 +10:00
bthci.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
can.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
common.c Port i2s, spi_master, and ledc to helper functions for option tables (#2577) 2018-12-02 16:20:45 +01:00
common.h Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
crypto.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
dac.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
dht.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
encoder.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
eromfs.c IDF web server module (#3502) 2022-03-05 13:51:54 +11:00
eromfs.py IDF web server module (#3502) 2022-03-05 13:51:54 +11:00
eth.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
file.c Added mkdir/rmdir support to file module. 2023-01-17 14:34:26 +11:00
gpio.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
heaptrace.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
http.c Add http.put (#3462) 2021-10-05 13:33:27 +11:00
httpd.c IDF web server module (#3502) 2022-03-05 13:51:54 +11:00
i2c.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
i2c_common.h Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
i2c_hw_master.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
i2c_hw_slave.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
i2s.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
idf_component.yml Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
ledc.c configure ledc to auto select clock 2023-05-18 12:46:49 +10:00
mqtt.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
net.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
node.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
otaupgrade.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
ow.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
pipe.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
project_include.cmake Improvements to external component/module support. 2023-01-17 14:08:47 +11:00
pulsecnt.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
qrcodegen.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
rmt.c Add support for using multiple memory slots in rmt setup (#3568) 2024-02-01 20:31:56 -05:00
rtcmem.c Ported the rtcmem over to ESP32 (#3544) 2022-09-29 21:37:34 -04:00
sdmmc.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
sigma_delta.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
sjson.c Fix broken sjson module init. 2021-11-04 20:55:08 +11:00
sodium.c Make sodium.random API behave consistently on all build types 2022-12-19 18:53:04 +11:00
spi.c Updated to IDF 4.4.6 (#3621) 2024-01-23 09:17:15 -05:00
spi_common.h Add u8g2 module. 2017-06-13 18:38:09 +02:00
spi_master.c Give the SPI module a chance of working... (#3496) 2022-01-27 07:02:56 +01:00
struct.c Fix potential integer overflow in getnum and fix the negation overflow in lua (#3634) 2024-02-05 19:27:00 -05:00
time.c Fix time.get() for 5.3-int32-singlefp firmware on IDF v5.0.2 2024-01-30 11:34:03 +11:00
tmr.c Implement tmr.wdclr() 2021-10-22 12:38:07 +11:00
touch.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
u8g2.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
uart.c uart: further clean up 2022-08-30 10:38:29 +10:00
ucg.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
uppercase.mk Successfully boot barebones NodeMCU on ESP32 (only). 2016-09-20 13:35:56 +10:00
wifi.c Update wifi.sta to support new IDF functionality. 2023-02-09 15:52:38 +11:00
wifi_ap.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
wifi_common.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
wifi_common.h Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
wifi_sta.c Prefer Lua booleans over 1/nil or 1/0 2023-02-09 15:52:38 +11:00
ws2812.c Update rmt translator (#3629) 2024-02-07 17:56:17 -05:00