ArdEV3
Use EV3 peripherals from Arduino microcontrollers.
Toggle main menu visibility
Loading...
Searching...
No Matches
EV3TouchSensor.h
1
#pragma once
2
#include <stdint.h>
3
#include <EV3Peripheral.h>
4
8
9
namespace
ev3 {
10
11
15
struct
TouchSensorPortConfig
{
16
uint8_t Input;
17
};
18
22
class
TouchSensor
:
public
_::Peripheral
<TouchSensorPortConfig> {
23
public
:
24
EV3_PERIPHERAL_CONSTRUCT(
TouchSensor
)
25
26
bool
Pressed
();
27
28
virtual
void
Setup();
29
};
30
31
}
ev3::TouchSensor
Definition
EV3TouchSensor.h:22
ev3::TouchSensor::Pressed
bool Pressed()
Whether or not the touch sensor is currently pressed.
Definition
EV3TouchSensor.cc:4
ev3::_::Peripheral
Definition
EV3Peripheral.h:9
ev3::TouchSensorPortConfig
Definition
EV3TouchSensor.h:15
src
EV3TouchSensor.h
Generated by
1.17.0