Programming the button
We're are programming a Netflix TV remote control, and we see the code for testing the sending signals from the Particle Photon to the TV.
Testing the code for remote control for a Netflix TV
In the following sketch, we show an example of programming the button:
//Before using, make sure you get your IR timings and add your hue bridge IP/dev username in the appropriate places. //To keep it as simple as possible, this does not contain any code for the optional LEDs on the case. We light up our indicators and logo after the button is pressed. TCPClient client; #define PIN_IR A0 #define PIN D0 #define NUM_PULSES 68 //specific to your TV int pulse_widths[NUM_PULSES][2] = { {62116, 8860}, {4360, 540}, {520, 540}, {1620, 560}, {500, 560}, {1600, 560}, {500, 560},{1600, 560}, {1600, 560}, {1640, 520}, {1640, 520}, {1640, 540}, {1620, 520},{540, 540}, {500, 560}, {500, 560}, {1640, 520}, {1600, 560}, {520, 540},{1620, 540}, {540, 540}, {500, 560}, {1600, 560}, {500,...