arduino中no matching function for call to 'Ticker::Ticker(void (&)(), int)'
时间: 2024-05-03 08:23:26 浏览: 11
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.