初始化仓库

This commit is contained in:
2025-08-31 21:37:24 +08:00
commit 7477a25070
45 changed files with 22852 additions and 0 deletions

23
Header/hx711.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef __HX711_H__
#define __HX711_H__
#include "common.h"
#define HX711_DT_PIN P3_3
#define HX711_SCK_PIN P3_4
typedef enum
{
HX711_A_128 = 1,
HX711_B_32 = 2,
HX711_A_64 = 3,
} HX711_ch_enum;
extern uint32 hx711_last_read_value[10]; // 用于存储最近读取的值
void hx711_init();
uint32 hx711_read_set(HX711_ch_enum next_ch,uint8 avg_times);
uint8 hx711_single_read_non_blocking(HX711_ch_enum next_ch); // 非阻塞读取HX711数据
#endif