View Code? Open in Web Editor
NEW
Old version of object oriented music player object_music, image support is bad?
old_music's Introduction
- 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
- Attach the TFT to the top of the arduino
- Connect your buzzer
- Change your settings
DEBUG
: whether or not to serial print debug messages
USE_IMAGERY
: whether or not to enable tft and sd usage
- old_music.ino
- player.cpp
- Draw_BMP.h
buzzer
: pin of your buzzer
SD_CS
: if you have USE_IMAGERY
set to 1 and your microSD uses a different pin/port
BRIGHTNESS
: 0-255 for the backlight strength (if you have USE_IMAGERY
set to 1)
- Choose a song by setting
CHOSEN_SONG
in songs.h (not all songs are finished/correctly entered)
- Upload images for songs to the SD (if
USE_IMAGERY
is 1)
- Upload the sketch
old_music's People
Contributors