Numworks Epsilon  1.4.1
Graphing Calculator Operating System
led_timer.cpp
Go to the documentation of this file.
1 #include "led_timer.h"
2 
4  Timer(1),
5  m_on(false)
6 {
7 }
8 
9 bool LedTimer::fire() {
10  m_on = !m_on;
11  KDColor ledColor = m_on ? KDColorRed : KDColorBlack;
12  Ion::LED::setColor(ledColor);
13  return false;
14 }
Definition: timer.h:15
constexpr KDColor KDColorBlack
Definition: color.h:41
#define false
Definition: stdbool.h:9
void setColor(KDColor c)
Definition: led.cpp:8
Definition: color.h:6
constexpr KDColor KDColorRed
Definition: color.h:43
LedTimer()
Definition: led_timer.cpp:3