generated from hulk/gd32e23x_template
35 lines
656 B
C
35 lines
656 B
C
//
|
|
// Created by dell on 25-1-7.
|
|
//
|
|
|
|
#ifndef GD60914_H
|
|
#define GD60914_H
|
|
|
|
#include "gd32e23x_it.h"
|
|
#include "gd32e23x.h"
|
|
|
|
#include "board_config.h"
|
|
|
|
#ifdef SOFTWARE_IIC
|
|
#include "soft_i2c.h"
|
|
#else
|
|
#include "i2c.h"
|
|
#endif
|
|
|
|
/******************************************************************************/
|
|
|
|
#define GD60914_ADDR (0x18 << 1)
|
|
|
|
/******************************************************************************/
|
|
|
|
#define GD60914_HUM_TEMP 0x1A
|
|
#define GD60914_OBJ_TEMP 0x1F
|
|
#define GD60914_AMB_TEMP 0x1E
|
|
#define GD60914_TEMP_REG 0x1C
|
|
|
|
void gd60914_get_object_tempture(void);
|
|
|
|
void gd60914_read_temp(void);
|
|
|
|
#endif //GD60914_H
|