Arduino_STM32 icon indicating copy to clipboard operation
Arduino_STM32 copied to clipboard

Bluepill - many standard arduino examples fail to compile

Open RickKimball opened this issue 7 years ago • 2 comments

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.

RickKimball avatar Jan 10 '19 21:01 RickKimball

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

rogerclarkmelbourne avatar Jan 29 '19 22:01 rogerclarkmelbourne

Everyone is welcome to contribute and make some necessary changes in the available examples.

stevstrong avatar Sep 16 '19 11:09 stevstrong