完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试使用 ESP8266SdFat 库将 SD 卡添加到我的项目中,因为我想使用软件 spi。我先在我的程序中尝试了它,然后在遇到错误后我试图只编译其中一个示例,但我总是收到以下错误,datalogger.ino 示例:
代码:全选In file included from C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/SoftSPI.h:36:0, from C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/SdSpiDriver.h:277, from C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/SdSpiCard.h:35, from C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/BlockDriver.h:32, from C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdFat.h:32, from C:UsersmssucAppDataLocalArduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatexamplesdataLoggerdataLogger.ino:5: C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h: In function 'void fastDigitalToggle(uint8_t)': C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h:286:45: error: 'fastDigitalRead' was not declared in this scope fastDigitalWrite(pin, !fastDigitalRead(pin)); ^ C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h:286:45: note: suggested alternative: C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h:263:6: note: 'sdfat::fastDigitalRead' bool fastDigitalRead(uint8_t pin) { ^ C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h:286:46: error: 'fastDigitalWrite' was not declared in this scope fastDigitalWrite(pin, !fastDigitalRead(pin)); ^ C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h:286:46: note: suggested alternative: C:UsersmssucAppDataLocalarduino15packagesesp8266hardwareesp82662.7.1librariesESP8266SdFatsrc/SdCard/../SpiDriver/DigitalPin.h:242:6: note: 'sdfat::fastDigitalWrite' void fastDigitalWrite(uint8_t pin, uint8_t val) { ^ exit status 1 Error compiling for board Generic ESP8266 Module. 我已经将 arduino、esp8266 和 visual micro 升级到最新版本,但两个 IDE 中的错误都没有变化。 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1143 浏览 1 评论
578浏览 6评论
479浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
463浏览 5评论
464浏览 4评论
440浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 03:22 , Processed in 0.711187 second(s), Total 42, Slave 36 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号