mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-23 15:27:14 +02:00
RMT refactoring based on IDF (#6024)
Summary RMT HAL refactoring based on IDF. Impact Improves RMT by adding IDF v4.4 support. Receiving RMT can handle any size of data. rmtInit() has a new parameter - RxBufferSize - to hold any number of data when receiving RMT. rmtWrite() has a new parameter - wait_tx_done - to block writing until sending all data. Related links fix #5905
This commit is contained in:
@ -41,7 +41,7 @@ void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
|
||||
if ((rmt_send = rmtInit(18, true, RMT_MEM_64)) == NULL)
|
||||
if ((rmt_send = rmtInit(18, RMT_TX_MODE, RMT_MEM_64)) == NULL)
|
||||
{
|
||||
Serial.println("init sender failed\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user