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

How to change clock to 1Hz? #5

Open
q-bird opened this issue Apr 29, 2021 · 4 comments
Open

How to change clock to 1Hz? #5

q-bird opened this issue Apr 29, 2021 · 4 comments

Comments

@q-bird
Copy link

q-bird commented Apr 29, 2021

No description provided.

@xukangmin
Copy link
Owner

Check https://github.com/SpenceKonde/megaTinyCore this repo is not actively maintained.
For clock, below is the options, if you use megaTinyCore, you can set it up in Arduino options.
Internal 20/16/10/8/5/4/1 MHz

@q-bird
Copy link
Author

q-bird commented Apr 30, 2021

@xukangmin
I used megaTinyCore but then I changed to this lib because megaTinyCore doesn't have touch feature
But this one doesn't let me to change the internal clock
Any suggestion?
Thank you

@xukangmin
Copy link
Owner

Go to C:\Users\xxxx\AppData\Local\Arduino15\packages\TinyCore\hardware\avr\0.0.6
Open boards.txt file.

change tiny32.build.f_cpu=20000000L to the clock you need.

i.e. 1MHz = 1000000L
5MHz = 5000000L

@q-bird
Copy link
Author

q-bird commented May 1, 2021

@xukangmin
Thank you :)
We can create custom board for it as well

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