arduino中no matching function for call to 'Ticker::Ticker(void (&)(), int)'
时间: 2024-05-03 07:23:26 浏览: 238
It seems like you are trying to create a Ticker object without specifying a function to call. The Ticker library in Arduino requires you to provide a function to call at a specific interval.
Here's an example of how to create a Ticker object that calls a function every 1000 milliseconds:
```
#include <Ticker.h>
void myFunction() {
// do something
}
Ticker myTicker(myFunction, 1000); // create a Ticker object that calls myFunction every 1000 milliseconds
```
Make sure you have included the Ticker library at the beginning of your sketch:
```
#include <Ticker.h>
```
Also, make sure that your function matches the Ticker library's function signature:
```
void myFunction() {
// do something
}
```
It should not have any parameters and return void.
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)