TinyCore icon indicating copy to clipboard operation
TinyCore copied to clipboard

How to change clock to 1Hz?

Open q-bird opened this issue 3 years ago • 4 comments

q-bird avatar Apr 29 '21 15:04 q-bird

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

xukangmin avatar Apr 29 '21 18:04 xukangmin

@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

q-bird avatar Apr 30 '21 03:04 q-bird

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

xukangmin avatar Apr 30 '21 12:04 xukangmin

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

q-bird avatar May 01 '21 03:05 q-bird