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

TIMSK in examples/TrinketKnob #4

Open
jsilence opened this issue Jan 22, 2017 · 3 comments
Open

TIMSK in examples/TrinketKnob #4

jsilence opened this issue Jan 22, 2017 · 3 comments

Comments

@jsilence
Copy link

In the example sketch, should'nt TIMSK be TIMSK0 at line 37?

At least my Arduino IDE complains about the former and accepts the latter.

@curlyz
Copy link

curlyz commented Aug 31, 2017

it can be anything based on your MCU. For example, Atmega8A has different timer than Atmega328, and each kind have 3 timers with some different in name.
I suggest you should read "Timer on Atmega" by Qeewiki

@ArJayTee
Copy link

ArJayTee commented Oct 1, 2017

Thank you for bringing this up, it helped me figure out the error I was getting with the exact same line.

@TaterTot24
Copy link

I am getting an error with using the "TIMSK" as well. I am using the Trinket Pro (ATmega328). Changing it to "TIMSK0" can get it to compile, but it is not working correctly. Is the "TIMSK0" the same thing and should work the same? I am just wanting to make sure that is not the issue.

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

4 participants