Adafruit Library Error

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
_phillip
 
Posts: 313
Joined: Fri Apr 09, 2021 3:28 pm

Adafruit Library Error

Post by _phillip »

Yesterday my sketch worked perfectly and today this compiler error popped up:

Code: Select all

 file included from /Users/myName/Documents/Arduino/Talavera ƒ/talavera_north_tank_3DEC2022-v00/talavera_north_tank_3DEC2022-v00.ino:595:
/Users/myName/Documents/Arduino/libraries/Adafruit_LiquidCrystal/Adafruit_LiquidCrystal.h:9:10: fatal error: Adafruit_MCP23X08.h: No such file or directory
    9 | #include <Adafruit_MCP23X08.h>
I do recall the Arduino IDE suggesting I 'update' some libraries yesterday and am wondering if this triggered this compiler error.

I came across this and wonder if it is a patch for this error.

https://github.com/adafruit/Adafruit-MC ... MCP23X08.h

Any help with this will be greatly appreciated.

Thank you.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Library Error

Post by adafruit_support_carter »

The Adafruit_LiquidCrystal went through a recent update which removed the built in MCP23008 support and replaced it with the existing MCP library:
https://github.com/adafruit/Adafruit-MC ... no-Library
As of the 2.0.0 release of Adafruit_LiquidCrystal, that is now a dependency.

Any new install should automatically install the dependency. For existing installs (your case), you may need to manually install the Adafruit-MCP23017-Arduino-Library. It should be available via the Arduino Library Manager.

User avatar
_phillip
 
Posts: 313
Joined: Fri Apr 09, 2021 3:28 pm

Re: Adafruit Library Error

Post by _phillip »

THANK YOU, SIR!!!!

That did it. I also had another issue with the NTPClient.h lib not including the 'getFormattedDate()', but I am aware of that and know how to get around it.

I am getting very leery of 'updates'. LOL!

I sincerely appreciate your help.

User avatar
MICHAEL_COLUZZI
 
Posts: 2
Joined: Mon Dec 26, 2022 8:35 pm

Re: Adafruit Library Error

Post by MICHAEL_COLUZZI »

Tried to compile with that adafruit library and received the error
libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp:352:61: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]

Using arduino IDE and the latest adafruit libraries v1.0.0

Thanks

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Library Error

Post by adafruit_support_carter »

@MICHAEL_COLUZZI Please start a new thread for your issue.

User avatar
MICHAEL_COLUZZI
 
Posts: 2
Joined: Mon Dec 26, 2022 8:35 pm

Re: Adafruit Library Error

Post by MICHAEL_COLUZZI »

Updated Arduino to latest IDE and adafruit library 1.0.0 for MSA311 and get errors:

Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp:352:61: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
_spi->transferBytes(prefix_buffer, nullptr, prefix_len);
^
Arduino15/packages/firebeetle32/hardware/esp32/0.1.1/libraries/SPI/src/SPI.h:73:10: note: initializing argument 1 of 'void SPIClass::transferBytes(uint8_t*, uint8_t*, uint32_t)'
void transferBytes(uint8_t * data, uint8_t * out, uint32_t size);
^
Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp:355:47: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
_spi->transferBytes(buffer, nullptr, len);
^
Adafruit_BusIO/Adafruit_SPIDevice.cpp:446:59: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
_spi->transferBytes(write_buffer, nullptr, write_len);
^

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Library Error

Post by adafruit_support_carter »

@MICHAEL_COLUZZI Please start a new thread for your issue. Locking this thread.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”