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

Add atmega168 feature to target ATmega168 chip running with its internal 8MHz oscillator #495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ghismary
Copy link
Contributor

I'm working on a project based on an ATmega168 chip without an external oscillator and therefore using its own internal 8MHz oscillator.
These changes introduce a new feature to be able to target this chip.

However, the changes made in the PR for adding an internal-clock feature (#443) may be a better way to achieve what I want. With this I could use both the 'nano168' and 'internal-clock' features to get the same result.

@Rahix
Copy link
Owner

Rahix commented Apr 1, 2024

You are using the ATmega168 directly, instead of a prebuilt Arduino/SparkFun/etc. dev-board, right? For such situations, you shouldn't use arduino-hal and instead depend on atmega-hal directly. That way, you are not bound to a specific clock selection or similar.

Fortunately for you, someone is currently contributing examples of how to use atmega-hal directly. See PR #524.

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.

None yet

2 participants