Arduino_STM32
Arduino_STM32 copied to clipboard
Bluepill - many standard arduino examples fail to compile
Trying to compile analog examples that use A0 fail to compile.
AnalogInOutSerial1:24:25: error: 'A0' was not declared in this scope
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
^
exit status 1
'A0' was not declared in this scope
I'm creating this issue for tracking purposes only. Not expecting it to get fixed.
I presume this should be PA0 ?
Edit.
Umm. I see what you mean. These are the AVR examples, and sometimes there is no nice way to make them compile.
e.g. #define A0 PA0 is not exactly ideal
Everyone is welcome to contribute and make some necessary changes in the available examples.