This commit is contained in:
2026-03-20 21:16:58 +08:00
parent 286ff98b8e
commit 90c3d919df
248 changed files with 94554 additions and 0 deletions

28
user/Device/CAT5171.h Executable file
View File

@@ -0,0 +1,28 @@
//##############################################################################
#if(ENABLE_USE_CAT5171)
//##############################################################################
#ifndef __CAT5171_H__
#define __CAT5171_H__
#define CAT5171_ADDR 0x58
#define POT_MAX 255
#define POT_MID 128
//#define CTYPE_POT 0
//#define ATYPE_POT BIT1
//#define RS BIT6
//#define SHOT_DOWN BIT5
void DigitalPotOutput(u16 PotCHN, u16 PotData);
u8 ReadDigitalPotWiper(u16 PotCHN);
void DigitalPotLowPower(u16 PotCHN);
#endif
//##############################################################################
#endif
//##############################################################################