mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2025-12-21 22:06:14 +00:00
* Add missing "paragraph" to library.properties. * Move not-to-be-exported includes to subdirectory. Remove #include "IRremoteInt.h" from a number of files since it now does not work any more, and since IRremote.h #includes it already. This resolves #464. * Remove #include <IRremoteInt.h> from examples, too. * Make ir_Lego_PF_BitStreamEncoder.h exported (again). * Revoked fe24095 (paragraph) to keep 1-1 correspondance to #464.
22 lines
420 B
C++
22 lines
420 B
C++
/*
|
|
* LegoPowerFunctionsSendDemo: LEGO Power Functions
|
|
* Copyright (c) 2016 Philipp Henkel
|
|
*/
|
|
|
|
#include <IRremote.h>
|
|
|
|
IRsend irsend;
|
|
|
|
void setup() {
|
|
}
|
|
|
|
void loop() {
|
|
// Send repeated command "channel 1, blue forward, red backward"
|
|
irsend.sendLegoPowerFunctions(0x197);
|
|
delay(2000);
|
|
|
|
// Send single command "channel 1, blue forward, red backward"
|
|
irsend.sendLegoPowerFunctions(0x197, false);
|
|
delay(2000);
|
|
}
|