Skip to content

MiP_ChestLED

github-actions[bot] edited this page Aug 10, 2026 · 11 revisions

Class MiP_ChestLED

MiP_ChestLED provides functions to read from and write to MiP's chest LED, allowing the setting of color and flash time.

Members & Functions

Type Signature Description
variable constexpr uint8_t MIP_CMD_GET_CHEST_LED The MiP protocol command to read the chest LED color.
variable constexpr uint8_t MIP_CMD_SET_CHEST_LED The MiP protocol command to set the chest LED color.
variable constexpr uint8_t MIP_CMD_FLASH_CHEST_LED The MiP protocol command to flash the chest LED.
variable MiP & m_mip A private variable that stores a reference to the main MiP class.
function MiP_ChestLED(MiP &mip) Constructs the chest LED manager.
function void read(MiPChestLED &chestLED) Reads the current RGB state and flash timings of the chest LED.
function void write(uint8_t red, uint8_t green, uint8_t blue) Sets the chest LED to a solid RGB color and verifies the change.
function void write(uint8_t red, uint8_t green, uint8_t blue, uint16_t onTime, uint16_t offTime) Sets the chest LED to flash an RGB color at a specific interval and verifies the change.
function void write(const MiPChestLED &chestLED) Sets the chest LED to flash an RGB color at a specific interval and verifies the change.
function void unverifiedWrite(uint8_t red, uint8_t green, uint8_t blue) Sets the chest LED to a solid RGB color without verifying the change.
function void unverifiedWrite(uint8_t red, uint8_t green, uint8_t blue, uint16_t onTime, uint16_t offTime) Sets the chest LED to a solid RGB color without verifying the change.
function void unverifiedWrite(const MiPChestLED &chestLED) Sets the chest LED to a solid RGB color without verifying the change.
function int8_t rawGet(MiPChestLED &chestLED)
function void rawSet(uint8_t red, uint8_t green, uint8_t blue)
function void rawFlash(uint8_t red, uint8_t green, uint8_t blue, uint8_t onTime, uint8_t offTime)

Clone this wiki locally