mirror of
https://github.com/rzajac/esp-drv.git
synced 2025-09-14 14:24:46 +03:00
Update documentation and fix small issues.
This commit is contained in:
@@ -29,5 +29,4 @@ target_include_directories(esp_sht21 PUBLIC
|
||||
|
||||
esp_gen_lib(esp_sht21
|
||||
${ESP_CMAKE_FIND_DIR}
|
||||
${esp_i2c_LIBRARIES}
|
||||
${esp_tim_LIBRARIES})
|
||||
${esp_i2c_LIBRARIES})
|
||||
|
@@ -14,5 +14,5 @@ Before you can start communicating with SHT21 you have to call
|
||||
`esp_sht21_init`. You need to call it only once unless you change the GPIO
|
||||
pins setup somewhere else in your code.
|
||||
|
||||
See driver documentation in [esp_sht21.h](include/esp_sht21.h) header file
|
||||
for more details.
|
||||
See [example program](../../examples/sht21) and driver documentation in
|
||||
[esp_sht21.h](include/esp_sht21.h) header file for more details.
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <esp_sht21.h>
|
||||
#include <osapi.h>
|
||||
|
||||
static uint8_t ICACHE_FLASH_ATTR
|
||||
calc_crc(uint8_t init, const uint8_t *data, uint8_t len)
|
||||
|
@@ -18,8 +18,8 @@
|
||||
#ifndef ESP_SHT21_H
|
||||
#define ESP_SHT21_H
|
||||
|
||||
#include <c_types.h>
|
||||
#include <esp_i2c.h>
|
||||
#include <c_types.h>
|
||||
|
||||
#define ESP_SHT21_ADDRESS 0x40
|
||||
// Measure relative humidity. Hold Master Mode.
|
||||
@@ -56,6 +56,7 @@
|
||||
// RH: 11bit TEMP: 11bit
|
||||
#define ESP_SHT21_RES0 0x3
|
||||
|
||||
|
||||
/**
|
||||
* Initialize SHT21.
|
||||
*
|
||||
|
Reference in New Issue
Block a user