renamed impl to detail
This commit is contained in:
44
FlippR-Driver/src/output/items/detail/SevenDigitDisplay.h
Normal file
44
FlippR-Driver/src/output/items/detail/SevenDigitDisplay.h
Normal file
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// Created by rhetenor on 20.11.18.
|
||||
//
|
||||
|
||||
#ifndef FLIPPR_DRIVER_SEVENDIGITDISPLAY_H
|
||||
#define FLIPPR_DRIVER_SEVENDIGITDISPLAY_H
|
||||
|
||||
#include "output/items/SevenDigitDisplay.h"
|
||||
|
||||
#include "output/items/detail/Display.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class SevenDigitDisplay : public Display<7>, public items::SevenDigitDisplay
|
||||
{
|
||||
public:
|
||||
SevenDigitDisplay(uint8_t address, uint8_t id) :
|
||||
Display<7>(address, id) {}
|
||||
|
||||
void write_score(uint score) override
|
||||
{
|
||||
Display<7>::write_score(score);
|
||||
}
|
||||
|
||||
void write_content(std::array<char, 7> content) override
|
||||
{
|
||||
Display<7>::write_content(content);
|
||||
}
|
||||
|
||||
~SevenDigitDisplay() override = default;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_SEVENDIGITDISPLAY_H
|
||||
Reference in New Issue
Block a user