Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
hello everyone:
void flip() {
pc.printf("0 ");
}
int main() {
button.rise(&flip);
while(1) {
flash = !flash;
wait(0.25);
}
}
i use InterruptIn on button.but when i click button one time the flip() always do servals times.I don't konw how to control it. I only want to do only once when i click button once.