ошибка при компиляции
- Войдите на сайт для отправки комментариев
Чт, 19/05/2022 - 21:06
"C:\\Users\\8FEE~1\\AppData\\Local\\Temp\\arduino_build_801931\\libraries\\Adafruit-MCP23017-Arduino-Library-master\\Adafruit_MCP23X17.cpp.o"
In file included from D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp:23:0:
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'void Adafruit_MCP23XXX::pinMode(uint8_t, uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'uint8_t Adafruit_MCP23XXX::digitalRead(uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23X17.h:8:0,
from D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23X17.cpp:5:
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23X17.cpp: In member function 'uint16_t Adafruit_MCP23X17::readGPIOAB()':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'void Adafruit_MCP23XXX::digitalWrite(uint8_t, uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23X17.cpp: In member function 'void Adafruit_MCP23X17::writeGPIOAB(uint16_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'uint8_t Adafruit_MCP23XXX::readGPIO(uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23X17.cpp: In member function 'void Adafruit_MCP23X17::enableAddrPins()':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'void Adafruit_MCP23XXX::writeGPIO(uint8_t, uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'void Adafruit_MCP23XXX::setupInterrupts(bool, bool, uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'void Adafruit_MCP23XXX::setupInterruptPin(uint8_t, uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'void Adafruit_MCP23XXX::disableInterruptPin(uint8_t)':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.cpp: In member function 'uint8_t Adafruit_MCP23XXX::getLastInterruptPin()':
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: error: 'ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE' was not declared in this scope
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^
D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master\src\Adafruit_MCP23XXX.h:29:3: note: in definition of macro 'MCP23XXX_SPIREG'
ADDRESSED_OPCODE_BIT0_LOW_TO_WRITE //!< SPI register type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Несколько библиотек найдено для "Adafruit_BusIO_Register.h"
Используется: D:\ArdoProjects\libraries\Adafruit_BusIO-master
Не используется: D:\ArdoProjects\libraries\Adafruit_BusIO-1.11.3
Используем библиотеку Adafruit-MCP23017-Arduino-Library-master версии 2.1.0 из папки: D:\ArdoProjects\libraries\Adafruit-MCP23017-Arduino-Library-master
Используем библиотеку Adafruit_BusIO-master версии 1.7.5 из папки: D:\ArdoProjects\libraries\Adafruit_BusIO-master
Используем библиотеку Wire версии 1.0 из папки: D:\Arduino\hardware\arduino\avr\libraries\Wire
Используем библиотеку SPI версии 1.0 из папки: D:\Arduino\hardware\arduino\avr\libraries\SPI
exit status 1
Ошибка компиляции для платы Arduino Mega or Mega 2560.
Возникла ошибка при загрузке https://downloads.arduino.cc/packages/package_index.json
помогите понять причину ошибки. Ошибка из-за библиотеки Адафруит CMP23017. На одном компе все работает, а на втором вылезла ошибка при компиляции
Судя по количеству ошибок - потерял часть библиотеки. Небось скопировал файлы неправильно.
С твоими то умениями - неудивительно, триодинаковых темы тому подтверждение.
И этому человеку не хватает ног на мега для проекта ....
Нечего бардак с библиотеками разводить. Скорее всего BusIO не той версии подцепился.
Нечего бардак с библиотеками разводить. Скорее всего BusIO не той версии подцепился.
так командир и сказал, что гранаты у него не той системы )))