-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I get following errors when including the "SerialTransfer.h"
header in PlatformIO for a SAMD21:
#include "Wire.h"
^~~~~~~~
compilation terminated.
.pio\libdeps\interferometer\SerialTransfer\src\SPITransfer.cpp: In member function 'uint8_t SPITransfer::available()':
.pio\libdeps\interferometer\SerialTransfer\src\SPITransfer.cpp:111:29: error: 'SPDR' was not declared in this scope
volatile uint8_t recChar = SPDR;
^~~~
.pio\libdeps\interferometer\SerialTransfer\src\SPITransfer.cpp:111:29: note: suggested alternative: 'SPI1'
volatile uint8_t recChar = SPDR;
^~~~
SPI1
*** [.pio\build\interferometer\libbc2\SerialTransfer\I2CTransfer.cpp.o] Error 1
*** [.pio\build\interferometer\libbc2\SerialTransfer\SPITransfer.cpp.o] Error 1
After deleting the SPI and I2C headers from the library the errors disappear.
Desktop (please complete the following information):
- OS: Win10
- PlatformIO with Arduino Framework and Atmel SAM Core
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working