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

readState() return number of file and not state #59

Open
pierrotm777 opened this issue Jun 24, 2024 · 1 comment
Open

readState() return number of file and not state #59

pierrotm777 opened this issue Jun 24, 2024 · 1 comment

Comments

@pierrotm777
Copy link

hello,

I use your lib with success but the readState return file number and not state.
I use a Pro Micro.
My code is:
void readSettingsDFP() { PRINT_P("\r\n"); //PRINT_P("***************************\r\n"); PRINT_P("* oO DFPlayer Settings Oo *\r\n"); //PRINT_P("***************************\r\n"); PRINTF("State : %d\r\n",myDFPlayer.readState()); //read mp3 state PRINTF("Volume : %d\r\n",myDFPlayer.readVolume()); //read current volume Equalizer = myDFPlayer.readEQ(); //read EQ setting PRINTF("Equalizer: %s\r\n",EQ_STR[ms.EQ_MODE]); PRINTF("Files found: %d\r\n",myDFPlayer.readFileCounts());//read number of files PRINTF("Current sound: %d\r\n",myDFPlayer.readCurrentFileNumber(2)); }

Result:
* oO DFPlayer Settings Oo * State : 19 Volume : 2 Equalizer: NORMAL Files found: 0 Current sound: 19

Thanks for your help,

Pierre

@pierrotm777
Copy link
Author

isACK = false solve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant