fix: hall music_player

This commit is contained in:
2021-10-11 12:22:29 +02:00
parent 820117d871
commit 3767c02ad3
6 changed files with 16 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ bool hall_is_Idle = true;
void initGame(void)
{
pinMode(HALL_INPUT, ANALOG);
//analogReadResolution(10);
analogSetAttenuation(ADC_11db);
}
@@ -26,6 +28,7 @@ void handleGame(void)
if(hall_idle_count > HALLIDLESAMPLES)
{
hall_is_Idle = false;
hall_idle_count = 8;
}
else
{