Skip to content

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.

2 participants