Your Universal Remote Control Center
RemoteCentral.com
Discrete Code Hunter Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 18 made on Tuesday April 7, 2020 at 17:11
elfege
Junior Member
Joined:
Posts:
April 2020
2
Hi,

This is how I do it, using ESP8266 IRremote library:

[code]
uint32_t rawZeroBit[3] = {8950, 2200, 600}; // raw ir command that emulates holding a button (after pressing the button)

irsend.sendNEC(0x77E1FAD6, 32); // play button cmd
delay(170);
long Start = millis();
while (millis() - Start < 6000) //hold for 5 seconds (3rd gen apple tv only, no way with 4th!)
{
irsend.sendRaw(rawZeroBit, 3, khz);// emulate holding the button
delay(del);
}
[/code]


Hosting Services by ipHouse