class
#include <pros/adi.hpp>
Port
Constructors, destructors, conversion operators
-
Port(std::uint8_t adi_port,
adi_port_config_e_t type = E_
ADI_ TYPE_ UNDEFINED) explicit - Configures an ADI port to act as a given sensor type.
-
Port(ext_
adi_ port_ pair_ t port_pair, adi_port_config_e_t type = E_ ADI_ TYPE_ UNDEFINED) explicit - Configures an ADI port on an adi expander to act as a given sensor type.
Public functions
- std::int32_t get_config() const
- Gets the configuration for the given ADI port.
- std::int32_t get_value() const
- Gets the value for the given ADI port.
- std::int32_t set_config(adi_port_config_e_t type) const
- Configures an ADI port to act as a given sensor type.
- std::int32_t set_value(std::int32_t value) const
- Sets the value for the given ADI port.
-
ext_
adi_ port_ tuple_ t get_port() const virtual - Gets the port of the sensor.