您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
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. }