esp-open-rtos/extras
Gunar Schorcht ac6797e916 Driver for Sensirion SHT3x temperature and humidity sensor readded (#453)
* Driver for Sensirion SHT3x sensor added

This is a driver for Sensirion SHT3x temperature and humidity sensors
connected via I2C.

This commit is a rebasing and contains some interface changes based on
the review from @ourairquality.

* SHT3x driver changes

Additional include to satisfy the Travis CI test build

* SHT3x driver - small changes

README.md has been shortened

* SHT3x driver - small changes

* SHT3x driver - small changes

- crc8 lookup table is now static to be held in flash memory
- special handling for the timer overflow in sht3x_is_measuring removed
- initialization reduced to availability check

* SHT3x driver - some small changes

- crc8 lookup table is now static to be held in flash memory
- special handling for the timer overflow in sht3x_is_measuring removed
- some whitespace removed
- initialization reduced to availability check

* SHT3x driver - some minor changes

- lookup tables made const to be held in flash
- crc8 computation changed to a non table lookup version
- measurement duration is now given in ticks and can be used directly
  for vTaskDelay (documentation and examples changed accordingly)

* SHT3x driver - documentation changed

* SHT3x driver - minor correction

- number of ticks for measurement duration takes now into account
  portTICK_PERIOD_MS

* SHT3x driver - minor correction

- number of ticks for measurement duration takes now into account
  portTICK_PERIOD_MS

* SHT3x driver - minor correction

- number of ticks for measurement duration takes now into account
  portTICK_PERIOD_MS

* SHT3x driver - minor correction

- number of ticks for measurement duration takes now into account
  portTICK_PERIOD_MS

* SHT3x driver - minor corrections

* SHT3x driver - minor corrections

* Driver for Sensirion SHT3x sensor added

This is a driver for Sensirion SHT3x temperature and humidity sensors
connected via I2C.

This commit is a rebasing and contains some interface changes based on
the review from @ourairquality.

SHT3x driver changes

- additional include to satisfy the Travis CI test build
- README.md has been shortened
- special handling for the timer overflow in sht3x_is_measuring removed
- some whitespaces removed
- crc8 computation changed to a non table lookup version
- measurement duration is now given in ticks and can be used directly
  for vTaskDelay (documentation and examples changed accordingly)
- number of ticks for measurement duration takes now into account
  portTICK_PERIOD_MS
- clock stretching disabled on sensor to avoid blocking when data are
  not ready to read
- calculation of maesurement duration adds now one and a half ticks to
  be sure that measurement duration is not too short
- function sht3x_is_measuring is now private and only for internal use,
  user task has always to use function vTaskDelay to wait for
  measurement results
- function sht3x_is_measuring was simplified and returns now just a
  boolean value
- private function sht3x_reset added which is used to reset the sensor
  during initialization
- active flag in sensor data structure not needed anymore
- function sht3_get_raw_data simplified
- function sht3x_start_measurement returns now only a boolean
- function sht3x_start_measurement does not check anymore whether there is
  already a measurment running
- new function sht3x_get_measurement_duration which returns the measurement
  duration in ticks for configured repeatability

* SHT3x driver minor changes

- type sht3x_values_t replaced by separate float values
- additional repeatability parameter defined for function sht3x_start_measurement
- parameter of function sht3x_get_measurement_duration changed from
  sht3x_sensort_t to sht3_repeat_t
- sensor modes and repeatability levels extended by prefix sht3x_

* SHT3x driver minor changes

- new high level function sht3x_measure added, it comprises all three
  steps to perform one measurement in only one function
- example with two sensors removed

* SHT3x driver small correction
2017-10-23 23:39:48 +02:00
..
ad770x I2C bus upgrade (#432) 2017-09-01 14:29:32 +05:00
ads111x Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
bearssl Update BearSSL 2017-07-04 23:16:22 +10:00
bh1750 I2C bus upgrade (#432) 2017-09-01 14:29:32 +05:00
bmp180 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
bmp280 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
cpp_support FreeRTOS type updates. (#261) 2016-11-05 12:04:03 +02:00
crc_generic Crc fix and update (#347) 2017-02-27 22:35:56 +06:00
dhcpserver Revert #426 2017-10-11 15:38:31 +05:00
dht Extras/DHT improvements: makefile fix, replace DHT_TYPE macro by param (#252) 2016-10-26 16:41:08 +03:00
ds18b20 ds18b20 fix for temperature below zero 2016-11-25 21:42:50 +02:00
ds1302 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
ds1307 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
ds3231 Merge pull request #437 from ourairquality/oaq-merge-1 2017-10-02 04:50:35 +05:00
fatfs FatFS update to R0.12c 2017-03-15 21:08:44 +05:00
fonts ssd1306 more functions (#310) 2016-12-13 19:42:23 +06:00
hd44780 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
hmc5883l Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
http-parser HTTP parser intergation (#263) 2016-11-23 17:58:02 +02:00
httpd libc: update to upstream master. 2017-09-21 23:44:24 +10:00
i2c I2C code formatting, README fix (#462) 2017-10-12 17:42:34 +05:00
i2s_dma Add an argument to ISRs. Disable interrupts while masking them. 2017-08-30 13:51:32 +10:00
ina3221 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
jsmn Add JSON support 2016-05-15 22:32:14 +10:00
max7219 MAX7219/MAX7221 dirver + example 2017-02-09 03:31:51 +05:00
mbedtls lwip: define LWIP_POSIX_SOCKETS_IO_NAMES as zero (#457) 2017-10-18 19:33:32 +02:00
mcp4725 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
mdnsresponder Change xTaskCreate priority. 2017-06-05 19:29:04 -03:00
ms561101ba03 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
onewire Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
paho_mqtt_c lwip: define LWIP_POSIX_SOCKETS_IO_NAMES as zero (#457) 2017-10-18 19:33:32 +02:00
pca9685 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
pcf8574 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
pcf8591 I2C bus upgrade (#432) 2017-09-01 14:29:32 +05:00
pwm Add an argument to ISRs. Disable interrupts while masking them. 2017-08-30 13:51:32 +10:00
rboot-ota Fix #313 2016-12-17 21:00:37 +05:00
sdio Fix for counter overflow in delays based on sdk_system_get_time() 2017-04-22 00:55:41 +05:00
sht3x Driver for Sensirion SHT3x temperature and humidity sensor readded (#453) 2017-10-23 23:39:48 +02:00
sntp libc: update to upstream master. 2017-09-21 23:44:24 +10:00
softuart Softuart (#307) 2017-03-06 23:28:20 +06:00
spiffs lwip: define LWIP_POSIX_SOCKETS_IO_NAMES as zero (#457) 2017-10-18 19:33:32 +02:00
ssd1306 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
stdin_uart_interrupt Add an argument to ISRs. Disable interrupts while masking them. 2017-08-30 13:51:32 +10:00
tsl2561 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
tsl4531 Code formatted, minor fixes (#466) 2017-10-18 21:25:48 +02:00
ultrasonic Fix for counter overflow in delays based on sdk_system_get_time() 2017-04-22 00:55:41 +05:00
wificfg wificfg: correct a few initialization issues (#464) 2017-10-18 20:56:17 +02:00
ws2812 Make headers in extras more cpp friendly 2016-10-24 18:13:17 +05:00
ws2812_i2s Added support for RGBW NeoPixels (#449) 2017-10-08 23:02:39 +05:00