Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluepill - many standard arduino examples fail to compile #587

Open
RickKimball opened this issue Jan 10, 2019 · 2 comments
Open

Bluepill - many standard arduino examples fail to compile #587

RickKimball opened this issue Jan 10, 2019 · 2 comments

Comments

@RickKimball
Copy link
Contributor

RickKimball commented Jan 10, 2019

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 RickKimball changed the title Bluepill - Arduino Analog examples fail to compile Bluepill - many standard arduino examples fail to compile Jan 10, 2019
@rogerclarkmelbourne
Copy link
Owner

rogerclarkmelbourne commented Jan 29, 2019

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

@stevstrong
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants