Guest User

Untitled

a guest
Nov 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <SoftwareSerial.h>
  2. #include <MP3Player_KT403A.h>
  3.  
  4. const int pinSW1 = 6;
  5. SoftwareSerial mp3(2, 3);
  6.  
  7. void setup() {
  8. mp3.begin(9600);
  9. pinMode(pinSW1, INPUT_PULLUP);
  10. delay(100);
  11. SelectPlayerDevice(0x02);
  12. SetVolume(0x1E);
  13. }
  14.  
  15. void loop() {
  16. if (!digitalRead(pinSW1)) {
  17. SpecifyMusicPlay(1);
  18. delay(500);
  19. }
  20. }
Add Comment
Please, Sign In to add comment