arduino / arduino/ArduinoCore-avr

Arduino Pro and Arduino Pro Mini, pin 13 initialized as output

Open
#477 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
1.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,
pin 13 is unexpecteadly initialized as output. This code shows that the on board led on pin 13 blinks, without the pin being set as output in the code.

```
void setup(){}

void loop()
{
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the behavior on an Arduino Pro or Pro Mini with the supplied setup/loop sketch, then trace how the AVR core initializes pin 13 before the sketch runs. Done means pin 13 is not initialized as an output unexpectedly, and the supplied sketch no longer blinks the onboard LED without explicitly setting the pin mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.