38 lines
621 B
C++
38 lines
621 B
C++
/*
|
|
* Sound.h
|
|
*
|
|
* Created on: Aug 2, 2018
|
|
* Author: rhetenor
|
|
*/
|
|
|
|
#ifndef _SRC_OUTPUT_SOUND_H_
|
|
#define _SRC_OUTPUT_SOUND_H_
|
|
|
|
#include "../../../include/output/output_items/ISound.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "utility/IOutputGPIOInterface.h"
|
|
|
|
namespace flippR_driver
|
|
{
|
|
namespace output
|
|
{
|
|
|
|
class Sound : public ISound, OutputItem
|
|
{
|
|
public:
|
|
Sound(std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface, int i2c_address, int data_pin, std::string name);
|
|
virtual ~Sound() = default;
|
|
|
|
virtual void play();
|
|
|
|
private:
|
|
virtual void playTask();
|
|
};
|
|
|
|
} /* namespace output */
|
|
}
|
|
#endif
|