3#include "components/init.hpp"
4#include "components/clear.hpp"
5#include "components/grid.hpp"
6#include "components/buttons.hpp"
13template <
typename Device,
typename Controller>
15 :
virtual init<Device>
16 ,
virtual clear<Device>
17 , grid<Device, Controller>
18 , buttons<Device, Controller>
20 explicit hardware(Controller* ctrlr)
24 ~hardware() {
reset(); }
33 this->grid<Device, Controller>::component_setup();
37 this->buttons<Device, Controller>::component_setup();
49 this->grid<Device, Controller>::component_reset();
53 this->buttons<Device, Controller>::component_reset();
Empty struct for devices or componants that do not provide a command to clear all feedback (LED's,...
Definition clear.hpp:10
Inherits from all type of hardware components like grid, buttons... Provides the hardware type with t...
Definition common.hpp:13
void setup() override
Sends any preliminary commands needed by the device ie. initialising to a particular mode like XY (La...
Definition hardware.hpp:26
void reset() override
Turns off all diplays (LEDs, screens, visual feedback).
Definition hardware.hpp:42
Empty struct for devices that do not provide an initialisation command.
Definition init.hpp:10