Library to handle the X-NUCLEO-6180XA1 Proximity and ambient light sensor expansion board based on VL6180X.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_6180XA1 SunTracker_BLE Servo_6180XA1 BLE_HR_Light ... more
Fork of X_NUCLEO_6180XA1 by
STMPE1600DigiIn Class Reference
Class representing a single stmpe1600 GPIO expander input pin. More...
#include <STMPE1600.h>
Public Member Functions | |
STMPE1600DigiIn (DevI2C &i2c, exp_gpio_pin_name inpinname, uint8_t DevAddr=STMPE1600_DEF_DEVICE_ADDRESS) | |
Constructor. | |
bool | read () |
Read the input pin. |
Detailed Description
Class representing a single stmpe1600 GPIO expander input pin.
Definition at line 158 of file STMPE1600.h.
Constructor & Destructor Documentation
STMPE1600DigiIn | ( | DevI2C & | i2c, |
exp_gpio_pin_name | inpinname, | ||
uint8_t | DevAddr = STMPE1600_DEF_DEVICE_ADDRESS |
||
) |
Constructor.
- Parameters:
-
[in] &i2c device I2C to be used for communication [in] inpinname the desired input pin name to be created [in] DevAddr the stmpe1600 I2C device addres (deft STMPE1600_DEF_DEVICE_ADDRESS)
Definition at line 166 of file STMPE1600.h.
Member Function Documentation
bool read | ( | ) |
Read the input pin.
- Returns:
- The pin logical state 0 or 1
Definition at line 180 of file STMPE1600.h.
Generated on Wed Jul 13 2022 23:03:14 by 1.7.2