proton

Firmware for Ghostbusters proton pack
git clone https://git.woozle.org/neale/proton.git

Neale Pickett  ·  2016-09-25

MusicPlayer.h

 1#pragma once
 2#include <Arduino.h>
 3#include <SD.h>
 4#include <Adafruit_VS1053.h>
 5
 6class MusicPlayer {
 7  Adafruit_VS1053_FilePlayer *musicPlayer;
 8public:
 9  MusicPlayer(int8_t cs, int8_t dcs, int8_t dreq, int8_t cardcs);
10  boolean startPlayingFile(const char *trackname);
11  void setVolume(uint8_t left, uint8_t right);
12  boolean isPlaying();
13  void stopPlaying();
14  void poll(unsigned long jiffies);			// Call this once per loop()
15};