Skip to content

Commit 4431e93

Browse files
fix issue arduino#28 and some examples do not work because main.cpp call void init( void ). Setup all pins (digital and analog) in INPUT mode (default is nothing)
such as :LiquidCrystal examples
1 parent 4b41eec commit 4431e93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/arduino/wiring.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ void init( void )
8282
PM->APBCMASK.reg |= PM_APBCMASK_ADC | PM_APBCMASK_DAC ;
8383

8484
// Setup all pins (digital and analog) in INPUT mode (default is nothing)
85-
for ( ul = 0 ; ul < NUM_DIGITAL_PINS ; ul++ )
86-
{
87-
pinMode( ul, INPUT ) ;
88-
}
85+
// for ( ul = 0 ; ul < NUM_DIGITAL_PINS ; ul++ )
86+
// {
87+
// pinMode( ul, INPUT ) ;
88+
// }
8989

9090
// Initialize Analog Controller
9191
// Setting clock

0 commit comments

Comments
 (0)