Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (31 loc) · 1.29 KB

README.md

File metadata and controls

33 lines (31 loc) · 1.29 KB

Old Music Player

not object oriented

Parts:

  • Arduino MEGA 2560 (only if you have USE_IMAGERY set to 1, otherwise an Uno should be enough)
  • A buzzer/speaker
    • Something to decrease power that goes to the buzzer/speaker if necessary (I used a LED)
  • A 2.8'' TFT LCD shield w/Cap Touch and microSD if you set USE_IMAGERY to 1 (anything that works with ILI9341 should work) (touch screen isn't used)
    • No screen is necessary if USE_IMAGERY is 0

Setup:

  1. Attach the TFT to the top of the arduino
  2. Connect your buzzer
  3. Change your settings
    • DEBUG: whether or not to serial print debug messages
      • old_music.ino
      • player.cpp
    • USE_IMAGERY: whether or not to enable tft and sd usage
      • old_music.ino
      • player.cpp
      • Draw_BMP.h
    • buzzer: pin of your buzzer
      • old_music.ino
    • SD_CS: if you have USE_IMAGERY set to 1 and your microSD uses a different pin/port
      • old_music.ino
    • BRIGHTNESS: 0-255 for the backlight strength (if you have USE_IMAGERY set to 1)
      • old_music.ino
  4. Choose a song by setting CHOSEN_SONG in songs.h (not all songs are finished/correctly entered)
  5. Upload images for songs to the SD (if USE_IMAGERY is 1)
  6. Upload the sketch