HX711.h 353 B

123456789101112131415161718192021
  1. #ifndef __HX711_H
  2. #define __HX711_H
  3. #include "sys.h"
  4. #define HX711_SCK PBout(12)// PB0
  5. #define HX711_DOUT PBin(13)// PB1
  6. extern void Init_HX711pin(void);
  7. extern u32 HX711_Read(void);
  8. extern void Get_Maopi(void);
  9. extern void Get_Weight(void);
  10. extern u32 HX711_Buffer;
  11. extern u32 Weight_Maopi;
  12. extern s32 Weight_Shiwu;
  13. extern u8 Flag_Error;
  14. #endif