added fliper items
This commit is contained in:
44
FlippR-Driver/src/output/items/detail/Flipper.h
Normal file
44
FlippR-Driver/src/output/items/detail/Flipper.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Flipper.h
|
||||
*
|
||||
* Created on: May 6, 2019
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef _SRC_FLIPPR_CODE_FLIPPER_H
|
||||
#define _SRC_FLIPPR_CODE_FLIPPER_H
|
||||
|
||||
#include "output/items/Flipper.h"
|
||||
#include "output/items/DriverBoardItem.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class Flipper : public items::Flipper, public DriverBoardItem
|
||||
{
|
||||
public:
|
||||
Flipper(std::shared_ptr<DriverBoardPinController> pin_controller, uint8_t address, std::string name);
|
||||
~Flipper() override;
|
||||
|
||||
void activate() override;
|
||||
void deactivate() override;
|
||||
bool is_activated() override;
|
||||
|
||||
private:
|
||||
bool activated;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif //FLIPPR_CODE_FLIPPER_H
|
||||
Reference in New Issue
Block a user