Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
bool | init () |
uint8_t | getMode () |
bool | setMode (uint8_t mode, uint8_t enable) |
bool | enablePower () |
bool | disablePower () |
bool | enableLightSensor (bool interrupts=false) |
bool | disableLightSensor () |
bool | enableProximitySensor (bool interrupts=false) |
bool | disableProximitySensor () |
bool | enableGestureSensor (bool interrupts=true) |
bool | disableGestureSensor () |
uint8_t | getLEDDrive () |
bool | setLEDDrive (uint8_t drive) |
uint8_t | getGestureLEDDrive () |
bool | setGestureLEDDrive (uint8_t drive) |
uint8_t | getAmbientLightGain () |
bool | setAmbientLightGain (uint8_t gain) |
uint8_t | getProximityGain () |
bool | setProximityGain (uint8_t gain) |
uint8_t | getGestureGain () |
bool | setGestureGain (uint8_t gain) |
bool | getLightIntLowThreshold (uint16_t &threshold) |
bool | setLightIntLowThreshold (uint16_t threshold) |
bool | getLightIntHighThreshold (uint16_t &threshold) |
bool | setLightIntHighThreshold (uint16_t threshold) |
bool | getProximityIntLowThreshold (uint8_t &threshold) |
bool | setProximityIntLowThreshold (uint8_t threshold) |
bool | getProximityIntHighThreshold (uint8_t &threshold) |
bool | setProximityIntHighThreshold (uint8_t threshold) |
uint8_t | getAmbientLightIntEnable () |
bool | setAmbientLightIntEnable (uint8_t enable) |
uint8_t | getProximityIntEnable () |
bool | setProximityIntEnable (uint8_t enable) |
uint8_t | getGestureIntEnable () |
bool | setGestureIntEnable (uint8_t enable) |
bool | clearAmbientLightInt () |
bool | clearProximityInt () |
bool | readAmbientLight (uint16_t &val) |
bool | readRedLight (uint16_t &val) |
bool | readGreenLight (uint16_t &val) |
bool | readBlueLight (uint16_t &val) |
bool | readProximity (uint8_t &val) |
bool | isGestureAvailable () |
int | readGesture () |