I'm trying to enable IRda TX and RX in the configuration for my M5core in Arduino. I saw in the documentation that this is possible: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/uart.html#api-reference
However, I don't know what library functions in Arduino I need to call to enable this.
Here's my code so far:
#include <M5Stack.h>
void setup() {
M5.begin();
Serial.begin(115200);
// Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
Serial2.begin(115200, SERIAL_8N1, 22, 21,0);
}
Any pointers on how to enable IRda tx and rx would be much appreciated! OR please show me where to look for the right configuration keyboard/syntax!
Thank you!