Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ブザー停止処理が正しくない #3

Closed
ShotaAk opened this issue Jan 5, 2024 · 1 comment
Closed

ブザー停止処理が正しくない #3

ShotaAk opened this issue Jan 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ShotaAk
Copy link

ShotaAk commented Jan 5, 2024

ブザー停止時はledcWrite(0, 0)を実行します。

STEP3と、STEP8に修正が必要です。

NG例:

void execByMode(char mode)
{
switch (mode) {
case 1:
ledcWriteTone(0, FREQ_C);
delay(1000);
ledcWrite(0, 1024);
break;
case 2:
ledcWriteTone(0, FREQ_D);
delay(1000);
ledcWrite(0, 1024);
break;
case 3:
ledcWriteTone(0, FREQ_E);
delay(1000);
ledcWrite(0, 1024);
break;
default:
ledcWrite(0, 1024);
break;
}
}

@ShotaAk ShotaAk added the bug Something isn't working label Jan 5, 2024
@aoki-rt aoki-rt mentioned this issue Jun 10, 2024
2 tasks
@ShotaAk
Copy link
Author

ShotaAk commented Jun 12, 2024

#6 で修正済み

@ShotaAk ShotaAk closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant