IR Recieve
This commit is contained in:
parent
a9cde5ac54
commit
23a2f243c9
8 changed files with 215 additions and 3 deletions
16
ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/IRBlaster.hpp
Normal file
16
ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/IRBlaster.hpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <driver/rmt.h>
|
||||
class IRBlaster
|
||||
{
|
||||
public:
|
||||
IRBlaster(uint8_t pin, rmt_channel_t channel);
|
||||
IRBlaster(uint8_t pin);
|
||||
/***
|
||||
* @brief Send an array of IR codes
|
||||
*
|
||||
* @param data Array of IR codes, each code is a 16 bit integer representing the number of 10us ticks
|
||||
* @param size Size of the array
|
||||
*/
|
||||
void send(uint16_t *data, size_t size);
|
||||
private:
|
||||
rmt_channel_t channel;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue