added LightState Switch
This commit is contained in:
@@ -76,3 +76,11 @@ void BSP_GPIO_EE24WriteProtectOn() {
|
||||
void BSP_GPIO_EE24WriteProtectOff() {
|
||||
HAL_GPIO_WritePin(EEPROM_WC_GPIO_Port, EEPROM_WC_Pin, GPIO_PIN_RESET);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Checks if the headlight is on.
|
||||
* @return true if the headlight is on, false otherwise.
|
||||
*/
|
||||
bool BSP_GPIO_HeadLightIsSet() {
|
||||
return HAL_GPIO_ReadPin(Headlight_Detect_GPIO_Port, Headlight_Detect_Pin) == GPIO_PIN_SET;
|
||||
}
|
||||
Reference in New Issue
Block a user