Adafruit Ledpack import error

Hello, I’ve been working with this libraries for a few weeks know and know when i try to compile my project that uses Adafruit LedBackpack i get this error:

Adafruit_SPIDevice.h:82:71: error: could not convert '& ASPI' from 'ASPI_t*' to 'SPIClass*'

I have the project i coded but I’ve also done a minimal code to see where it crashes and it happens as soon as i #include <Adafruit_LEDBackpack.h>.

I am using platformio. This is my platformio.ini:

[platformio]
default_envs = debug

[env:release]
platform = atmelsam
board = due
framework = arduino
lib_ldf_mode = deep
lib_extra_dirs = ../../libs, ../../external
lib_deps = 
  adafruit/Adafruit DRV2605 Library@^1.2.0
  adafruit/Adafruit BusIO @ ^1.11.5
  https://github.com/adafruit/Adafruit_LED_Backpack.git
  adafruit/Adafruit GFX Library @ ^1.11.0
monitor_speed = 115200

[env:debug]
platform = atmelsam
board = due
framework = arduino
lib_ldf_mode = deep
lib_extra_dirs = ../../libs, ../../external
lib_deps = 	
  adafruit/Adafruit DRV2605 Library@^1.2.0
  adafruit/Adafruit BusIO @ ^1.11.5
  https://github.com/adafruit/Adafruit_LED_Backpack.git
  adafruit/Adafruit GFX Library @ ^1.11.0
monitor_speed = 115200
build_flags = -DDEBUG=1

Here would be the minimal code where it is failing. I have a library, MinimalMachine.h that imports #include <Adafruit_LEDBackpack.h> and when i run main.cpp i get the error.

MinimalMachine.h:

// Audio Includes
#include <SdFat.h>
#include <AudioI2S.h>

// Touch Screen Includes
#include <GD2.h>

// Motor Includes
#include <Adafruit_DRV2605.h>

// Visual Includes
#include <Adafruit_LEDBackpack.h>

#include <DueFlashStorage.h>

main.cpp:

#include "MachineTest.h"

void setup(){
    
}

void loop(){

}

So basically i get an error when importing <Adafruit_LEDBackpack.h>. I must insist that i have been compiling projects just fine for a few weeks, and now this is happening with all my projects. If i rebuild a project that already is compiled it works.

It was a conflict with gd2-lib.

An Ad Hoc fix was made here

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.