EV3RT C++ API Reference  Version 1.0
An RTOS-based development platform for LEGO Mindstorms EV3.
TouchSensor.h
1 //
2 // TouchSensor.h
3 //
4 // Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5 //
6 
7 #ifndef EV3CPPAPI_TOUCHSENSOR_H_
8 #define EV3CPPAPI_TOUCHSENSOR_H_
9 
10 #include "Sensor.h"
11 
12 namespace ev3api {
16 class TouchSensor: public Sensor
17 {
18 public:
24  explicit TouchSensor(ePortS port);
25 
32  bool isPressed(void) const;
33 }; // class TouchSensor
34 } // namespace etrobo::ev3
35 
36 #endif
Definition: Clock.h:12
ePortS
Definition: Port.h:18
Definition: Sensor.h:18
Definition: TouchSensor.h:16
TouchSensor(ePortS port)
bool isPressed(void) const