-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathled.cpp
More file actions
28 lines (20 loc) · 690 Bytes
/
led.cpp
File metadata and controls
28 lines (20 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*******************************************************************************************************
File: led.cpp
Author: Aiko Pras
History: 2022/06/14 AP Version 1.0
Purpose: Implements the safety decoder specific LEDs
******************************************************************************************************/
#include <Arduino.h>
#include "led.h"
#include "hardware.h"
// A number of LEDs are connected to the safety decoder. Their objects are instantiated here.
Leds leds;
void Leds::init() {
safety.attach(LEDS_BLINKING);
red.attach(LED_RED);
yellow.attach(LED_YELLOW);
green.attach(LED_GREEN);
}
void Leds::update() {
safety.update();
}