1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00
This commit is contained in:
Harald Barth
2023-04-08 23:35:48 +02:00
5 changed files with 11 additions and 2 deletions

View File

@@ -237,6 +237,7 @@ int16_t ADCee::ADCmax() {
}
int ADCee::init(uint8_t pin) {
int value = 0;
PinName stmpin = analogInputToPinName(pin);
uint32_t stmgpio = stmpin / 16; // 16-bits per GPIO port group on STM32