40 LED(
unsigned int pinNumber);
65 virtual void TurnOn()
override;
77 virtual void TurnOff()
override;
104 virtual std::string
ToString()
const override;
Abstract base class for every component (sensor, actuator, etc.) the library manages.
Definition: BaseComponent.h:60
A very simple standard LED, driven by a single GPIO pin.
Definition: LED.h:15
virtual void TurnOff() override
Turns the LED off (drives its pin low).
Definition: LED.cpp:67
unsigned int myPinNumber
The BCM GPIO pin this LED is driven on.
Definition: LED.h:24
virtual void ProcessRawValues() override
Processes the LED's raw values.
Definition: LED.cpp:83
virtual std::string ToString() const override
Serializes the LED's state (its pin number) to a string.
Definition: LED.cpp:99
virtual void TurnOn() override
Turns the LED on (drives its pin high).
Definition: LED.cpp:52
LED(unsigned int pinNumber)
Builds an LED on the given GPIO pin and sets that pin to output mode.
Definition: LED.cpp:18
virtual ~LED()
Destroys the LED.
Definition: LED.cpp:37
unsigned int GetPinNumber() const
Gets the GPIO pin the LED is driven on.
Definition: LED.cpp:121
RumPi is the library's top-level facade.
Definition: AlertManager.h:6