PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
445B

  1. /*
  2. * LegoPowerFunctionsSendDemo: LEGO Power Functions
  3. * Copyright (c) 2016 Philipp Henkel
  4. */
  5. #include <IRremote.h>
  6. #include <IRremoteInt.h>
  7. IRsend irsend;
  8. void setup() {
  9. }
  10. void loop() {
  11. // Send repeated command "channel 1, blue forward, red backward"
  12. irsend.sendLegoPowerFunctions(0x197);
  13. delay(2000);
  14. // Send single command "channel 1, blue forward, red backward"
  15. irsend.sendLegoPowerFunctions(0x197, false);
  16. delay(2000);
  17. }