Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cores/arduino/overloads.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@
* SPDX-License-Identifier: Apache-2.0
*/

#pragma once

#ifdef CONFIG_DAC

void analogWrite(enum dacPins pinNumber, int value);

#endif

// In c++ mode, we also provide analogReadResolution and analogWriteResolution getters
#ifdef CONFIG_ADC

int analogReadResolution();

#endif

#if defined(CONFIG_PWM) || defined(CONFIG_DAC)

int analogWriteResolution();

#endif
Loading