aoirint / HomeRemoteIno

おうちのエアコン(リモコン:A75C3777)を遠隔で動かすためのArduinoプログラム
https://github.com/aoirint/HomeRemotePy
MIT License
0 stars 0 forks source link

Support IRremote 2.8.1 or later #1

Open aoirint opened 3 years ago

aoirint commented 3 years ago

IRremote: https://github.com/Arduino-IRremote/Arduino-IRremote

aoirint commented 3 years ago

Deferences between 2.8.0 and 2.8.1: https://github.com/Arduino-IRremote/Arduino-IRremote/compare/2.8.0...2.8.1

aoirint commented 3 years ago

https://github.com/Arduino-IRremote/Arduino-IRremote/blob/03eaff41451cf44ffe65f719665d163e4ebaf998/src/IRremoteInt.h#L38

Buffer size limited to 100?

aoirint commented 3 years ago

https://github.com/Arduino-IRremote/Arduino-IRremote/compare/2.8.0...2.8.1

IRremote.h

2.8.0

void sendRaw(const unsigned int buf[], unsigned int len, unsigned int hz);

2.8.1

void sendRaw(const uint8_t aBufferWithTicks[], uint8_t aLengthOfBuffer, uint8_t aIRFrequencyKilohertz);

function sendRaw 2nd argument (length of IR data) type changed from unsigned int to uint8_t. max buffer size limited to 255?

aoirint commented 3 years ago

The length of the current IR data is 440.

Solution A: Split IR data into windows with a size of 100.