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
"
9
#include "
okapi/api/device/button/buttonBase.hpp
"
10
11
namespace
okapi
{
12
class
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
api.h
PROS API header provides high-level user functionality.
buttonBase.hpp
okapi::ADIButton
Definition
adiButton.hpp:12
okapi::ADIButton::port
std::uint8_t port
Definition
adiButton.hpp:46
okapi::ADIButton::currentlyPressed
virtual bool currentlyPressed() override
okapi::ADIButton::smartPort
std::uint8_t smartPort
Definition
adiButton.hpp:45
okapi::ADIButton::ADIButton
ADIButton(std::pair< std::uint8_t, std::uint8_t > iports, bool iinverted=false)
A button in an ADI port.
okapi::ADIButton::ADIButton
ADIButton(std::uint8_t iport, bool iinverted=false)
A button in an ADI port.
okapi::ButtonBase
Definition
buttonBase.hpp:11
okapi
Definition
chassisController.hpp:16
include
okapi
impl
device
button
adiButton.hpp
Generated by
1.9.8