fix: hall music_player
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user