11#include "wpi/units/time.hpp"
74 std::unique_ptr<wpi::DigitalInput> m_buttonB;
75 std::unique_ptr<wpi::DigitalOutput> m_greenLed;
78 std::unique_ptr<wpi::DigitalInput> m_buttonC;
79 std::unique_ptr<wpi::DigitalOutput> m_redLed;
Class to write to digital outputs.
Definition DigitalOutput.hpp:23
bool GetButtonCPressed()
Gets if the C button is pressed.
ChannelMode
Mode for Romi onboard IO.
Definition OnBoardIO.hpp:33
@ OUTPUT
Output.
Definition OnBoardIO.hpp:33
@ INPUT
Input.
Definition OnBoardIO.hpp:33
void SetGreenLed(bool value)
Sets the green LED.
bool GetButtonAPressed()
Gets if the A button is pressed.
OnBoardIO(OnBoardIO::ChannelMode dio1, OnBoardIO::ChannelMode dio2)
wpi::units::second_t m_nextMessageTime
Definition OnBoardIO.hpp:37
void SetYellowLed(bool value)
Sets the yellow LED.
static constexpr auto kMessageInterval
Definition OnBoardIO.hpp:36
bool GetButtonBPressed()
Gets if the B button is pressed.
void SetRedLed(bool value)
Sets the red LED.
Definition RomiGyro.hpp:11