添加ADC采集电压和RGB灯

This commit is contained in:
2024-03-08 15:19:23 +08:00
parent 7749d1d7b7
commit fa1cc826f1
14 changed files with 1189 additions and 915 deletions

14
APP/vcc_adc.h Normal file
View File

@ -0,0 +1,14 @@
//
// Created by hu123456 on 2024/3/8.
//
#ifndef FOC_N_VCC_ADC_H
#define FOC_N_VCC_ADC_H
#include "mymain.h"
void adc_init(void);
uint32_t adc_get_result(void);
float get_VCC(void);
#endif //FOC_N_VCC_ADC_H