Skip to content

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

Description

@pierrotm777

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions