Super simple IRRemote module for esp-open-rtos.
-
Put this directory in the lib directory of your project, then in your Makefile:
EXTRA_COMPONENTS = extras/other_module lib/irremote
-
Then in your code, use it like this:
// Enable GPIO pin and turn it off gpio_enable(GPIO_IR_PIN, GPIO_OUTPUT); gpio_write(GPIO_IR_PIN, 0); // Set the GPIO pin ir_set_pin(GPIO_IR_PIN); // Send raw message ir_send_raw(BUFFER, BUFFER_SIZE, 38);