LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
adiButton.hpp
Go to the documentation of this file.
1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
6#pragma once
7
8#include "api.h"
10
11namespace okapi {
12class ADIButton : public ButtonBase {
13 public:
26 ADIButton(std::uint8_t iport, bool iinverted = false);
27
42 ADIButton(std::pair<std::uint8_t, std::uint8_t> iports, bool iinverted = false);
43
44 protected:
45 std::uint8_t smartPort;
46 std::uint8_t port;
47
48 virtual bool currentlyPressed() override;
49};
50} // namespace okapi
PROS API header provides high-level user functionality.
std::uint8_t port
Definition adiButton.hpp:46
virtual bool currentlyPressed() override
std::uint8_t smartPort
Definition adiButton.hpp:45
ADIButton(std::pair< std::uint8_t, std::uint8_t > iports, bool iinverted=false)
A button in an ADI port.
ADIButton(std::uint8_t iport, bool iinverted=false)
A button in an ADI port.