-
|
I have a question how to set a custom ADC_SAMPLINGTIME. In this example it says it can be set, but I'm unable to set it. It always goes to the default value. I have tried the following with no results. #include <Arduino.h>
#include "stm32yyxx_ll_adc.h"
#define ADC_SAMPLINGTIME 7#define ADC_SAMPLINGTIME 7
#include <Arduino.h>
#include "stm32yyxx_ll_adc.h" |
Beta Was this translation helpful? Give feedback.
Answered by
jernejp21
Jan 1, 2026
Replies: 1 comment
-
|
I managed to get it working. I created a file build_opt.h and put -DADC_SAMPLINGTIME=7 into it. That solved the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jernejp21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to get it working.
I created a file build_opt.h and put -DADC_SAMPLINGTIME=7 into it. That solved the problem.