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