mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[hal,wpilib] Add function to control "Radio" LED (#6073)
This commit is contained in:
21
hal/src/main/native/sim/LEDs.cpp
Normal file
21
hal/src/main/native/sim/LEDs.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "hal/LEDs.h"
|
||||
|
||||
#include "hal/simulation/RoboRioData.h"
|
||||
|
||||
namespace hal::init {
|
||||
void InitializeLEDs() {}
|
||||
} // namespace hal::init
|
||||
|
||||
extern "C" {
|
||||
|
||||
void HAL_SetRadioLEDState(HAL_RadioLEDState state, int32_t* status) {
|
||||
HALSIM_SetRoboRioRadioLEDState(state);
|
||||
}
|
||||
HAL_RadioLEDState HAL_GetRadioLEDState(int32_t* status) {
|
||||
return HALSIM_GetRoboRioRadioLEDState();
|
||||
}
|
||||
} // extern "C"
|
||||
Reference in New Issue
Block a user