Skip to content

Commit abea1d3

Browse files
soburiCopilot
andauthored
Update cores/arduino/Arduino.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e934bce commit abea1d3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cores/arduino/Arduino.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,13 @@ void noInterrupts(void);
118118

119119
int digitalPinToInterrupt(pin_size_t pin);
120120

121+
#if defined(CONFIG_ADC)
121122
void analogReadResolution(int bits);
123+
#endif
124+
125+
#if defined(CONFIG_DAC) || defined(CONFIG_PWM)
122126
void analogWriteResolution(int bits);
127+
#endif
123128

124129
#include <variant.h>
125130

0 commit comments

Comments
 (0)