Digigurdy-baz
Loading...
Searching...
No Matches
simpleled.h
Go to the documentation of this file.
1#ifndef SIMPLELED_H
2#define SIMPLELED_H
3
4#include <Arduino.h>
5#include <EEPROM.h>
6
7#include "common.h"
8#include "eeprom_values.h"
9
10// class SimpleLED is for controlling LED lights wired up to a given pin on the Teensy (and ground)
11class SimpleLED {
12 private:
13 int led_pin;
14 int enabled;
15
16 public:
17 SimpleLED(int pin);
18
19 void on();
20 void off();
21 void disable();
22 void enable();
23};
24
25#endif
Definition: simpleled.h:11
void disable()
Disabled the LED. If disabled, on() and off() will not respond.
Definition: simpleled.cpp:29
void enable()
Enables the LED.
Definition: simpleled.cpp:34
void on()
Turns the LED on.
Definition: simpleled.cpp:15
void off()
Turns the LED off.
Definition: simpleled.cpp:22