mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[apps] Create a LED timer
Change-Id: Ice5a5fbf9fdf7b493597aa9542206372ebf0ae81
This commit is contained in:
13
apps/led_timer.cpp
Normal file
13
apps/led_timer.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "led_timer.h"
|
||||
|
||||
LedTimer::LedTimer() :
|
||||
Timer(1),
|
||||
m_on(false)
|
||||
{
|
||||
}
|
||||
|
||||
void LedTimer::fire() {
|
||||
m_on = !m_on;
|
||||
KDColor ledColor = m_on ? KDColorRed : KDColorBlack;
|
||||
Ion::LED::setColor(ledColor);
|
||||
}
|
||||
Reference in New Issue
Block a user