Skip to content

Commit e934bce

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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cores/arduino/overloads.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ void analogWrite(enum dacPins pinNumber, int value);
1111
#endif
1212

1313
// In c++ mode, we also provide analogReadResolution and analogWriteResolution getters
14+
#if defined(CONFIG_ADC)
1415
int analogReadResolution();
16+
#endif
17+
18+
#if defined(CONFIG_DAC) || defined(CONFIG_PWM)
1519
int analogWriteResolution();
20+
#endif

0 commit comments

Comments
 (0)