Go to the documentation of this file.
21 #ifndef _TouchSensor_H_
22 #define _TouchSensor_H_
27 #if defined(CONF_DSENSOR)
60 #warning Enable CONF_DSENSOR to use TouchSensor.H
61 #endif // CONF_DSENSOR
62 #endif // _TouchSensor_H_
volatile unsigned int & sensor
The address of our sensor value.
bool pressed() const
determine if touch sensor is pressed
#define TOUCH(a)
Convert raw data to touch sensor (0: off, else pressed)
TouchSensor(const Sensor::Port port)
construct a TouchSensor connected to pad {port}
C++ Sensor Class Interface.
kernel configuration file
Port
List of sensor identifiers (IDs).
Generated for brickOS Kernel Developer by
1.8.16