Почему не компилируется ?

ardalion2211
Offline
Зарегистрирован: 18.10.2017
/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 */
 
#include <IRremote.h>
 
int RECV_PIN = 11;
 
IRrecv irrecv(RECV_PIN);
 
decode_results results;
 
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}
 
void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}
 
 
 
 
 
 
ошибка : Arduino: 1.6.5 (Windows 7), Плата"Arduino Duemilanove or Diecimila, ATmega168"
 
Multiple libraries were found for "IRremote.h"
 
 Used: C:\Users\user\Documents\Arduino\libraries\Arduino-IRremote-master
 
 Not used: C:\Users\user\Downloads\arduino-1.6.5-r5-windows\arduino-1.6.5-r5\libraries\Arduino-IRremote-master
 
 
 
Sketch uses 9 784 bytes (68%) of program storage space. Maximum is 14 336 bytes.
 
Global variables use 429 bytes (41%) of dynamic memory, leaving 595 bytes for local variables. Maximum is 1 024 bytes.
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
Проблема загрузки на плату. Для достижения дзен, курить http://www.arduino.cc/en/Guide/Troubleshooting#upload .
 
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xce
 
avrdude: stk500_recv(): programmer is not responding
 
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xce
 
  Это сообщение будет содержать больше информации чем
  "Отображать вывод во время компиляции"
  включено в Файл > Настройки
 
DIYMan
DIYMan аватар
Offline
Зарегистрирован: 23.11.2015

Оно, строго говоря, компилируется, просто не закачивается. Плата у вас правильно выбрана? Она у вас такая: "Arduino Duemilanove or Diecimila, ATmega168" ???

ardalion2211
Offline
Зарегистрирован: 18.10.2017

у меня китайская dfrobot, dfrduino Duemilanove

DIYMan
DIYMan аватар
Offline
Зарегистрирован: 23.11.2015

ardalion2211 пишет:

у меня китайская dfrobot, dfrduino Duemilanove

Ясно. Проблема не в компилировании, а в закачке на плату. Загрузчик-то в плате е? На всякий: http://arduino.ru/forum/obshchii/vopros-pro-atmega328-i-atmega328p