arduino / arduino/Arduino

Setting an Input Pin to High would be helpfull of a Warning of the Arduino IDE Software

Open
#11,647 3 comments 1 reaction 0 assignees View on GitHub
Component: Core feature request
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

Arduino IDE Version: 1.8.15
Arduino Hardware: Arduino Nano Every

If you write "digitalWrite (X, HIGH) to a Pin, which has accidentaly defined as an input the processor will set the output, but only a low current commes from this "Fake Output".

It would be very helpfull, if the IDE Software would give a Warning/Input, that in the code is a "digitalWrite" which writes to an Input...
(By defining the analog Inputs I defined the Digital 6 Output further below in the VoidSetup acidentaly again as an Input. This creates an Output half alive... Or I was to dumb to make right code)

[WCB-TRM21Software_V0.1.12.zip](https://github.com/arduino/Arduino/files/6981431/WCB-TRM21Software_V0.1.12.zip)

Contributor guide

Open the contributing guide

Research direction

The issue names Arduino IDE 1.8.15 and a Nano Every sketch, but no source files or tests. Start by locating how the IDE handles digitalWrite calls and pin mode declarations, then establish how a warning would be surfaced. Done means a reproducible sketch triggers a useful warning when digitalWrite targets a pin defined as an input.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, java
Domain
devtools, embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.