2
The fact that it is possible to set them incorrectly is why, in some projects where I'm concerned about this, I'll add a small series resistance to an inbound signal. Should the pin become OUTPUT and driven in an opposing direction to the signal, the resistance serves to prevent a short through both devices. The possibility is always there, whether you ...
2
There are some hardware-specific abstractions (they mostly define the maximum memory available), but otherwise these are functions are implemented by the C/C++ runtime (on arduinos an implementation called "NewLib") and usually "just work". You might want to take a look at this question, where quite a bit of background is given on the SAM ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
memory × 111memory-usage × 35
arduino-uno × 20
string × 12
arduino-ide × 11
sram × 11
programming × 10
eeprom × 9
c++ × 8
progmem × 8
arduino-nano × 7
atmega328 × 7
flash × 7
serial × 6
esp8266 × 6
arduino-mega × 6
variables × 6
pointer × 6
attiny × 5
c × 4
nodemcu × 3
spi × 3
sd-card × 3
sketch × 3
avr × 3