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

Analogread A0 (PD0) reads PF4 #121

Closed
classiphil opened this issue Apr 21, 2021 · 4 comments
Closed

Analogread A0 (PD0) reads PF4 #121

classiphil opened this issue Apr 21, 2021 · 4 comments

Comments

@classiphil
Copy link

classiphil commented Apr 21, 2021

Am I doing something wrong? When I compile the example AnalogreadSerial Sketch which should read A0 (PD0) on a 4809 on a breadboard the TX Port presents the readings of PF4? (I chose no bootloader, 40Pin, 16 MHz and set the fuses. Programming with Arduino (JTAG2UPDI).. )

@classiphil
Copy link
Author

Found it!

I have to use analogread(0) not (A0) as I did.

@MCUdude
Copy link
Owner

MCUdude commented Apr 21, 2021

I have to use analogRead(0) not (A0) as I did.

Thanks for taking a look at it. It is certainly a bug I'll look into. For reference, what pinout option did you use when you compiled your code?

@classiphil
Copy link
Author

classiphil commented Apr 21, 2021

40 Pin. Thank you for sharing your work.

@MCUdude
Copy link
Owner

MCUdude commented Apr 21, 2021

The issue should now be fixed and will be available in the next release. The bug affected A0 and A1.

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

No branches or pull requests

2 participants