I am working on a code that will control an MP3 player (DFPlayer) via serial data. My goal was to be able to play 4 files with using an AUX channel on an RC transmitter/receiver. I am able to control file one but can not figure out how to set the pulsein range to control each file without triggering the first one. Looking to trigger each file with: example between 90 to 105, 120 to 135 and so on but I see an issue with the scanning of the input only triggering the first value but just dont know how to set it up to ignore the first file (lower value) if the pulsein value is correct to trigger the second file and so on. Hope someone from the forum can give me a boost to get over the issue that I am having.
Thank you....
Dave
Thank you....
Dave
Attachments
-
949 bytes Views: 3