Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 551 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 551 Bytes

IRRemote for esp-open-rtos

Super simple IRRemote module for esp-open-rtos.

Usage

  1. Put this directory in the lib directory of your project, then in your Makefile:

    EXTRA_COMPONENTS = extras/other_module lib/irremote
    
  2. 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);