arduino / arduino/ArduinoCore-samd

I want to enable it for value number o to 99

Open
#370 1 comment 0 reactions 0 assignees View on GitHub
waiting for feedback
Dominant language
C
Stars
502
Forks
740
PR merge metrics
No merged PRs in 30d

Description

if (pin < A0) {
pin += A0;
}

pinPeripheral(pin, PIO_ANALOG);

if (pin == A0) { // Disable DAC, if analogWrite(A0,dval) used previously the DAC is enabled
syncDAC();
DAC->CTRLA.bit.ENABLE = 0x00; // Disable DAC
//DAC->CTRLB.bit.EOEN = 0x00; // The DAC output is turned off.
syncDAC();
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the source file containing the pinPeripheral(pin, PIO_ANALOG) and DAC disable snippet, then determine what “value number o to 99” is intended to enable. Check whether the repository has tests or examples covering this behavior; completion criteria are not specified in the issue and need clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.