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.

27 satır
473B

  1. /*
  2. * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
  3. * An IR LED must be connected to Arduino PWM pin 3.
  4. * Version 0.1 July, 2009
  5. * Copyright 2009 Ken Shirriff
  6. * http://arcfn.com
  7. */
  8. #include "IRremote.h"
  9. #define POWER 0x7F80
  10. #define AIWA_RC_T501
  11. IRsend irsend;
  12. void setup() {
  13. Serial.begin(9600);
  14. Serial.println("Arduino Ready");
  15. }
  16. void loop() {
  17. if (Serial.read() != -1) {
  18. irsend.sendAiwaRCT501(POWER);
  19. delay(60); // Optional
  20. }
  21. }