ArminJo / DigistumpArduino

Improved version of Digistump avr core for Arduino
194 stars 37 forks source link

SPI.h Not found when using Adafruit Dotstar Library #56

Closed MatthewMartinFD closed 1 year ago

MatthewMartinFD commented 1 year ago

If you have handling problems or questions, consider to open a discussion https://github.com/ArminJo/DigistumpArduino/discussions instead of an issue.

Bug Report

Board

IDE

Example from the core libraries to reproduce the issue

Version

Current behavior

#include <Adafruit_DotStar.h>

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}
                 from C:\Users\Deviant\AppData\Local\Temp\.arduinoIDE-unsaved2023021-13512-sdcgw0.51dq\sketch_jan21a\sketch_jan21a.ino:1:
c:\Users\Deviant\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:9:10: fatal error: SPI.h: No such file or directory
 #include <SPI.h>
          ^~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

When attempting to compile using the Digispark board and including Adafruit_Dotstar.h from Adafruit Dotstar v1.2.1, SPI.h cannot be found

Expected behavior

Full compile without errors.

Additional context

ArminJo commented 1 year ago

Is Adafruit Dotstar released for ATtiny85?

MatthewMartinFD commented 1 year ago

I have a physical device that was previously working with a Dotstar attached to a digispark, however its bootloader became corrupted and I need to compile software onto a replacement. So this works in some capacity, I can't speak to your statement specifically.

MatthewMartinFD commented 1 year ago

It appears to compile if I downgrade Adafruit_DotStar to 1.1.4, though I am waiting for new hardware to come in the mail to test.

ArminJo commented 1 year ago

Thanks! So it seems to be no problem with DigistumpArduino but with Adafruit_DotStar. Try also the ATTinyCore for it.