|
|
|
@ -10,6 +10,14 @@ namespace showcase_component {
|
|
|
|
void ShowcaseComponent::setup() {
|
|
|
|
void ShowcaseComponent::setup() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ShowcaseComponent::turn_on(){
|
|
|
|
|
|
|
|
this->write_state(On);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ShowcaseComponent::turn_off(){
|
|
|
|
|
|
|
|
this->write_state(Off);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ShowcaseComponent::loop() {
|
|
|
|
void ShowcaseComponent::loop() {
|
|
|
|
uint8_t data = 10;
|
|
|
|
uint8_t data = 10;
|
|
|
|
this->read_register(0x0, &data, 0x1);
|
|
|
|
this->read_register(0x0, &data, 0x1);
|
|
|
|
|