Closed
Description
- OS: Mac OS X
- Arduino IDE version: 1.8.13
- STM32 core version: 1.9.0
- Board Name: NUCLEO-H743ZI2
Describe the bug
I try to use PA6 as analog input. Calling analogRead (PA6)
returns always zero.
Bug Fix
I think the bug is in the ~/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/variants/NUCLEO_H743ZI/PeripheralPins.c
file.
Line 57 {PA_6, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC1_INP3
is commented.
Uncommenting this line solves the bug.
Best regards,
Pierre Molinaro
Activity
fpistm commentedon Jan 12, 2021
Hi @pierremolinaro
In this case this is not a bug. The variant has been described like this.
Anyway with #1091 this will be changed as all pins would be available.
pierremolinaro commentedon Jan 12, 2021
Ok, thank you very much for your answer.
Best regards,
Pierre Molinaro
[variant] Update Generic H7xx
[variant] Update Generic H7xx
[variant] Update Generic H7xx
[variant] Update Generic H7xx
Update Generic H7xx
[variant] Update Generic H7xx
[variant] Update Generic H7xx
[variant] Update Generic H7xx
[variant] Update Generic H7xx
[variant] Update Generic H7xx
15 remaining items