2023-09-17 19:20:06 -04:00
|
|
|
// 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);
|
|
|
|
|
}
|
2024-11-03 13:32:03 -05:00
|
|
|
|
|
|
|
|
bool XRPOnBoardIO::GetLed() const {
|
|
|
|
|
return m_led.Get();
|
|
|
|
|
}
|