Redesign the platform so that hardware-specific API is not visible by default #8440
Labels
Component: Core
Related to the code for the standard Arduino API
feature request
A request to make an enhancement (not a bug fix)
At the moment, the hardware-specific API is visible in the arduino sketches by default.
( ie implementation details are bleeding into the Arduino abstract API).
Therefore users can write code like
and even
This confusion can be eliminated if the hw-specific headers are not included in the sketch by default.
If advanced users really need these defines, they can include the headers explicitly.
Samples:
https://www.instructables.com/id/ATTiny-Port-Manipulation/
PORTB |= (1 << PB3); //replaces digitalWrite(PB3, HIGH);
damellis/attiny#127
The text was updated successfully, but these errors were encountered: