новая функция, вызываю после ац преобразования, чтомы переключить при необходимости мультиплексированные каналы
This commit is contained in:
1 parent
b42498f167
commit
30715cb3d5
1 file changed
+1
@@ -73,6 +73,7 @@ uint32_t analogRead(uint32_t PinNumber)
|
||||
// extra least significant bits read from the ADC are discarded
|
||||
value = (value >> (MCU_ADC_RESOLUTION - currentResolution));
|
||||
}
|
||||
additionalPinsDeinit(PinNumber);
|
||||
}
|
||||
else
|
||||
ErrorMsgHandler("analogRead(): invalid analog pin number");
|
||||
|
||||
Reference in new issue
Block a user