Skip to content

Commit 703200b

Browse files
author
Elias Santistevan
committed
Comments out the default setting for all digital pins to INPUT, this will lead to smaller current draw as a result
1 parent 975722d commit 703200b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sparkfun/samd/cores/arduino/wiring.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,13 @@ void init( void )
8080
// Clock ADC/DAC for Analog
8181
PM->APBCMASK.reg |= PM_APBCMASK_ADC | PM_APBCMASK_DAC ;
8282

83+
/*
8384
// Setup all pins (digital and analog) in INPUT mode (default is nothing)
8485
for (uint32_t ul = 0 ; ul < NUM_DIGITAL_PINS ; ul++ )
8586
{
8687
pinMode( ul, INPUT ) ;
8788
}
89+
*/
8890

8991
// Initialize Analog Controller
9092
// Setting clock

0 commit comments

Comments
 (0)