Add support for ATmega8535, ATmega16 and ATmega32
Issue #8
resolved
Hi! I'm the maintainer of the MightyCore, and I'd really appreciate if you added support for the ATmega8535, ATmega16 and ATmega32. These are very similar to the ATmega8 when it comes to register names. It should be an easy fix
Comments (5)
-
repo owner -
repo owner - marked as minor
-
reporter Yes, they are very similar to the ATmega8. The extended ifdef in the header file almost did the trick. You still need to add it to line 249 and 277 in the newPing.cpp file, then it compiles.
-
repo owner Of course. I've now changed those lines too. Thanks!
-
repo owner - changed status to resolved
Library updated to support for the ATmega16, ATmega32 and ATmega8535 microcontrollers.
- Log in to comment
It appears they have the same timer addresses names as the ATmega8.
In the NewPing.h file change the line that currently reads:
To this:
That should take care of it. Let me know!
Tim