发布网友 发布时间:2023-04-23 05:23
共1个回答
热心网友 时间:2023-10-08 22:26
update一下:byte SPIClass::transfer(byte _data) { SPDR = _data; while (!(SPSR & _BV(SPIF))) ; return SPDR;}库头文件SPI.h中也有错误:byte SPIClass::transfer(byte _data) { SPDR = _data; while (!(SPSR & _BV(SPIF))) ; return SPDR;}错误提示:Description Resource Path Location TypeMember declaration not found SPI.h /ArinoApp/SPI line 55 Semantic ErrorSymbol 'SPCR' could not be resolved SPI.h /ArinoApp/SPI line 63 Semantic ErrorSymbol 'SPCR' could not be resolved SPI.h /ArinoApp/SPI line 67 Semantic ErrorSymbol 'SPDR' could not be resolved SPI.h /ArinoApp/SPI line 56 Semantic ErrorSymbol 'SPDR' could not be resolved SPI.h /ArinoApp/SPI line 59 Semantic ErrorSymbol 'SPIE' could not be resolved SPI.h /ArinoApp/SPI line 63 Semantic ErrorSymbol 'SPIE' could not be resolved SPI.h /ArinoApp/SPI line 67 Semantic ErrorSymbol 'SPIF' could not be resolved SPI.h /ArinoApp/SPI line 57 Semantic ErrorSymbol 'SPSR' could not be resolved SPI.h /ArinoApp/SPI line 57 Semantic Error 查看原帖>>