Class Leds¶
Defined in File leds.hpp
Class Documentation¶
-
class Leds¶
A class specifically for handling the wrapping of the digital pins connected to LEDs on the RoboMaster development board.
Public Types
Public Functions
-
Leds() = default¶
-
mockable ~Leds() = default¶
- mockable void init ()
Initializes the LEDs by putting the pins in output mode and settting all the pins to low.
- mockable void set (LedPin pin, bool isSet)
Sets a given led to either high or low.
Note
setting an LED to high (
isSet=true) will turn the LED off and setting an LED to low (isSet=false) will turn the LED on.- Parameters:
pin – [in] the LED to set
isSet – [in]
trueif you want to turn the LED off,falseif you want to turn the LED on.
-
Leds() = default¶