nodemcu-firmware/components/platform/include
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
..
cpu_esp32.h Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
flash_fs.h WIP ESP32 IDF port. 2016-09-16 18:11:42 +10:00
platform.h Update rmt translator (#3629) 2024-02-07 17:56:17 -05:00
platform_rmt.h Consider RMT channel limitations at allocation time. (#3481) 2022-01-07 14:50:28 +11:00
platform_wdt.h refactor task wdt handling to platform layer 2018-04-04 09:25:47 +02:00
sections.h WIP ESP32 IDF port. 2016-09-16 18:11:42 +10:00
u8x8_nodemcu_hal.h update to u8g2 2.25.10 2019-04-28 22:26:37 +02:00
ucg_nodemcu_hal.h Add ucg module. 2018-10-07 16:31:28 +02:00
user_version.h Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00