Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Call to noTone() without first calling tone() fails #7

Open
tysonmatanich opened this issue Jan 24, 2022 · 0 comments
Open

Call to noTone() without first calling tone() fails #7

tysonmatanich opened this issue Jan 24, 2022 · 0 comments

Comments

@tysonmatanich
Copy link

It would be nice if this was handled gracefully. Thanks!

#include <Tone32.h>

#define BUZZER_PIN 16
#define BUZZER_CHANNEL 0

void setup() {}

void loop() {
  noTone(BUZZER_PIN, BUZZER_CHANNEL);
  tone(BUZZER_PIN, NOTE_C4, 500, BUZZER_CHANNEL);
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant