14#ifndef VEX_DEVICE_CLASS_H
15#define VEX_DEVICE_CLASS_H
28 int32_t _lastpolltime;
29 int16_t _pollinterval;
33 void setPollInterval( int32_t value );
34 bool pollValid(
bool bSave );
43 void init( int32_t index );
44 virtual bool installed();
45 virtual int32_t value();
47 int32_t readDigitalPin();
48 int32_t readAnalogPin();
71 T &operator[](
int i );
72 int getLength() {
return length; };
78 if( i < 0 || i > (length-1) ) {
Use the device class to get information about all of the vex devices plugged into the IQ.
int32_t numberOf(IQ_DeviceType type)
Gets the number of specified devices that are plugged into the V5.
IQ_DeviceType type(int32_t index)
Get the V5 device type plugged into a specific port.
int32_t number()
Gets the number of VEX devices that are plugged in.
IQ_DeviceType
IQ Device type definitions
Bumper switch device class