We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd66b99 commit 3645829Copy full SHA for 3645829
cores/arduino/wiring.c
@@ -80,11 +80,15 @@ void init( void )
80
// Clock ADC/DAC for Analog
81
PM->APBCMASK.reg |= PM_APBCMASK_ADC | PM_APBCMASK_DAC ;
82
83
+// Defining VERY_LOW_POWER breaks Arduino APIs since all pins are considered INPUT at startup
84
+// However, it really lowers the power consumption by a factor of 20 in low power mode (0.03mA vs 0.6mA)
85
+#ifndef VERY_LOW_POWER
86
// Setup all pins (digital and analog) in INPUT mode (default is nothing)
87
for (uint32_t ul = 0 ; ul < NUM_DIGITAL_PINS ; ul++ )
88
{
89
pinMode( ul, INPUT ) ;
90
}
91
+#endif
92
93
// Initialize Analog Controller
94
// Setting clock
0 commit comments