platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
138 stars 105 forks source link

digispark-tiny platform: SPI.h not found #74

Closed dontsovcmc closed 6 years ago

dontsovcmc commented 6 years ago

Configuration

Operating system: MacOS, Visual Studio Code (Windows 10x64 also) PlatformIO Version: PlatformIO, version 3.5.0b3

Description of problem

I got error when build project that depends SPI.h src/main.cpp:2:17: fatal error: SPI.h: No such file or directory

Steps to Reproduce

  1. Project for Digistump Digispark 16Mhz
  2. Add "SPI.h" header or add library that included "SPI.h"

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:digispark-tiny]
platform = atmelavr
board = digispark-tiny
framework = arduino

Source file to reproduce issue:

#include <Arduino.h>
#include "SPI.h"
void setup() {
    // put your setup code here, to run once:
}

void loop() {
    // put your main code here, to run repeatedly:
}
ivankravets commented 6 years ago

The same with Arduino IDE. It seems that need to use custom SPI library screen shot 2017-11-27 at 01 19 04