ArdEV3
Use EV3 peripherals from Arduino microcontrollers.
Loading...
Searching...
No Matches
ev3::TouchSensor Class Reference

#include <EV3TouchSensor.h>

Inheritance diagram for ev3::TouchSensor:
ev3::_::Peripheral< TouchSensorPortConfig >

Public Member Functions

bool Pressed ()
 Whether or not the touch sensor is currently pressed.
virtual void Setup ()
Public Member Functions inherited from ev3::_::Peripheral< TouchSensorPortConfig >
 Peripheral (TouchSensorPortConfig ports)
 Initialize this peripheral from the specified port configuration.
auto Ports () -> TouchSensorPortConfig const &
 Get the port configuration for this peripheral.
virtual void Loop ()

Additional Inherited Members

Protected Attributes inherited from ev3::_::Peripheral< TouchSensorPortConfig >
TouchSensorPortConfig ports

Detailed Description

A class to drive an EV3 touch sensor. See TouchSensorPortConfig for wiring information.

Examples
touchSensor.cpp.

Member Function Documentation

◆ Setup()

void ev3::TouchSensor::Setup ( )
virtual

The documentation for this class was generated from the following files: