Zahin Ahmad
Zahin Ahmad

Reputation: 1

Ticker class call in C++ mbed

I'm writing a programme that generates a fixed frequency using a ticker in mbed environment. I'm still at the begineing so it's a little bit messy.

Upvotes: 0

Views: 471

Answers (1)

Jan Jongboom
Jan Jongboom

Reputation: 27352

In the attach line change &this to this. this is already a pointer to self, you don't need to take the address.

flipper.attach(callback(this, &Speaker::flip), 0.5/frequency); 

Upvotes: 2

Related Questions