33 #define DISTNx_Command 0x41
34 #define DISTNx_Distance 0x42
35 #define DISTNx_Voltage 0x44
36 #define DISTNx_SensorType 0x50
38 #include "NXShieldI2C.h"
47 DISTNx(uint8_t i2c_address = 0x02);
This class implements I2C interfaces used by NXShield.
Definition: NXShieldI2C.h:32
int getVolt()
Definition: DISTNx.cpp:57
DISTNx(uint8_t i2c_address=0x02)
Definition: DISTNx.cpp:33
bool energize()
Definition: DISTNx.cpp:42
short getType()
Definition: DISTNx.cpp:62
bool deEnergize()
Definition: DISTNx.cpp:47
int getDist()
Definition: DISTNx.cpp:52
uint8_t issueCommand(char command)
Definition: DISTNx.cpp:37
This class interfaces with DIST-Nx attached to NXShield.
Definition: DISTNx.h:43