ЗАКРЫТО! Помогите найти ошибку

Тема в разделе "Arduino & Shields", создана пользователем adast123, 29 июн 2015.

  1. adast123

    adast123 Нерд

    Вот ошибка:
    Код (Text):
    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.
    Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
    teplevizor.ino: In function 'void loop()':
    teplevizor:34: error: expected `)' before ';' token
    teplevizor:34: error: expected primary-expression before ',' token
    teplevizor:34: error: expected `;' before ')' token
    teplevizor:37: error: expected `)' before ';' token
    teplevizor:37: error: expected primary-expression before ',' token
    teplevizor:37: error: expected `;' before ')' token
    teplevizor:40: error: expected `)' before ';' token
    teplevizor:40: error: expected primary-expression before ',' token
    teplevizor:40: error: expected `;' before ')' token
    teplevizor:43: error: expected `)' before ';' token
    teplevizor:43: error: expected primary-expression before ',' token
    teplevizor:43: error: expected `;' before ')' token
    teplevizor:46: error: expected `)' before ';' token
    teplevizor:46: error: expected primary-expression before ',' token
    teplevizor:46: error: expected `;' before ')' token
    teplevizor:49: error: expected `)' before ';' token
    teplevizor:49: error: expected primary-expression before ',' token
    teplevizor:49: error: expected `;' before ')' token
    Вод код:
    Код (Text):
    //An IR LED must be connected to Arduino PWM pin 3.
    #include <IRremote.h>
    IRsend irsend;
    String message;
    #define LG_ON 0x20DF10EF;
    #define LG_VOLUP 0x20DF40BF;
    #define LG_VOLDOWN 0x20DFC03F;
    #define LG_NEXT 0x20DF00FF;
    #define LG_BACK 0x20DF807F;
    #define LG_MUTE 0x20DF906F;
    #define LG_1 0x20DF8877;
    #define LG_2 0x20DF48B7;
    #define LG_3 0x20DFC837;
    #define LG_4 0x20DF28D7;
    #define LG_5 0x20DFA857;
    #define LG_6 0x20DF6897;
    #define LG_7 0x20DFE817;
    #define LG_8 0x20DF18E7;
    #define LG_9 0x20DF9867;
    #define LG_0 0x20DF08F7;

    void setup() {
      Serial.begin(9600);
    }

    void loop()
    {
      while (Serial.available()) {
        char incomingChar = Serial.read();
        if (incomingChar >= 'a' && incomingChar <= 'z') {
          message += incomingChar;
        }else if (incomingChar == '\n') {
          if (message == "on") {
            irsend.sendNEC(LG_ON, 32);
          }
          if (message == "volup") {
            irsend.sendNEC(LG_VOLUP, 32);
          }
          if (message == "voldown") {
            irsend.sendNEC(LG_VOLDOWN, 32);
          }
          if (message == "next") {
            irsend.sendNEC(LG_NEXT, 32);
          }
          if (message == "back") {
            irsend.sendNEC(LG_BACK, 32);
          }
          if (message == "mute") {
            irsend.sendNEC(LG_MUTE, 32);
          }
          message = "";
        }
      }
    }
     
  2. adast123

    adast123 Нерд

    Тема закрыта, проблему решил!