Skip to content

added example: atmega2560/atmega2560-servo.rs#700

Open
mocrsteel wants to merge 4 commits intoRahix:mainfrom
mocrsteel:atmega2560-servo-example
Open

added example: atmega2560/atmega2560-servo.rs#700
mocrsteel wants to merge 4 commits intoRahix:mainfrom
mocrsteel:atmega2560-servo-example

Conversation

@mocrsteel
Copy link

Based on some tinkering and the help, I would like to add this example for the ATMega2560. I think it's a good one to show on how to interact with the MCU's registers too.

Code has been tested on my own Arduino Mega with an SG90 servo.

@mocrsteel
Copy link
Author

Refer to discussion #699

mocrsteel and others added 3 commits January 31, 2026 10:41
Corrected the MAX value from 65c536 to 65536 in comments.
Updated comments for clarity and added references to Arduino-Mega documentation.
@mocrsteel
Copy link
Author

Updated the formatting by running cargo fmt. That should resolve the failed workflow. (I hope at least?)

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

Successfully merging this pull request may close these issues.

1 participant