Files
allwpilib/xrpVendordep/src/main/native/cpp/xrp/XRPOnBoardIO.cpp
2024-11-03 10:32:03 -08:00

25 lines
565 B
C++

// 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 "frc/xrp/XRPOnBoardIO.h"
#include <frc/DigitalInput.h>
#include <frc/DigitalOutput.h>
#include <frc/Errors.h>
#include <frc/Timer.h>
using namespace frc;
bool XRPOnBoardIO::GetUserButtonPressed() {
return m_userButton.Get();
}
void XRPOnBoardIO::SetLed(bool value) {
m_led.Set(value);
}
bool XRPOnBoardIO::GetLed() const {
return m_led.Get();
}