Blinker的示例Ticker_BLE编译出错
本帖最后由 hodrag 于 2021-4-6 22:39 编辑我用的Arduino1.8.13+blinker0.3.6,在编译示例时出现错误:
In file included from G:\arduino\portable\sketchbook\libraries\Blinker\src/Blinker.h:21:0,
from G:\arduino\portable\sketchbook\libraries\Blinker\examples\Blinker_Ticker\Ticker_BLE\Ticker_BLE.ino:48:
G:\arduino\portable\sketchbook\libraries\Blinker\src/BlinkerSerialBLE.h: In member function 'void BlinkerSerialBLE::begin(uint8_t, uint8_t, uint32_t)':
G:\arduino\portable\sketchbook\libraries\Blinker\src/BlinkerSerialBLE.h:93:30: error: 'RX' was not declared in this scope
if (ss_rx_pin == RX && ss_tx_pin == TX) {
^
G:\arduino\portable\sketchbook\libraries\Blinker\src/BlinkerSerialBLE.h:93:49: error: 'TX' was not declared in this scope
if (ss_rx_pin == RX && ss_tx_pin == TX) {
^
G:\arduino\portable\sketchbook\libraries\Blinker\examples\Blinker_Ticker\Ticker_BLE\Ticker_BLE.ino: At global scope:
Ticker_BLE:53:1: error: 'BlinkerTicker' does not name a type
BlinkerTicker ticker;
^
G:\arduino\portable\sketchbook\libraries\Blinker\examples\Blinker_Ticker\Ticker_BLE\Ticker_BLE.ino: In function 'void setup()':
Ticker_BLE:88:5: error: 'ticker' was not declared in this scope
ticker.attach(30, ticker_callback);
^
G:\arduino\portable\sketchbook\libraries\Blinker\examples\Blinker_Ticker\Ticker_BLE\Ticker_BLE.ino: In function 'void loop()':
Ticker_BLE:95:5: error: 'ticker' was not declared in this scope
ticker.run();
^
exit status 1
'BlinkerTicker' does not name a type
这个示例是给avr用的,你没有选择对应的硬件所以编译报错 coloz 发表于 2021-4-7 19:11
这个示例是给avr用的,你没有选择对应的硬件所以编译报错
谢谢,明白了,8266得用ticker库
页:
[1]