Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

problem with interap TimerOne #2

Closed
gunaone opened this issue Jun 1, 2017 · 3 comments
Closed

problem with interap TimerOne #2

gunaone opened this issue Jun 1, 2017 · 3 comments

Comments

@gunaone
Copy link

gunaone commented Jun 1, 2017

i have problem with error in enterup..
did u now what the problem?
i use arduino IDE 1.6.4
error :
In file included from ari_ndari_inverter.ino:2:0:
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h: In member function 'void TimerOne::setPwmDuty(char, unsigned int)':
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h:105:13: error: 'TIMER1_A_PIN' was not declared in this scope
if (pin == TIMER1_A_PIN) OCR1A = dutyCycle;
^
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h: In member function 'void TimerOne::pwm(char, unsigned int)':
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h:114:13: error: 'TIMER1_A_PIN' was not declared in this scope
if (pin == TIMER1_A_PIN) { pinMode(TIMER1_A_PIN, OUTPUT); TCCR1A |= _BV(COM1A1); }
^
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h: In member function 'void TimerOne::disablePwm(char)':
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h:129:13: error: 'TIMER1_A_PIN' was not declared in this scope
if (pin == TIMER1_A_PIN) TCCR1A &= ~_BV(COM1A1);
^
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h: In member function 'void TimerOne::attachInterrupt(void (*)())':
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h:143:2: error: 'TIMSK1' was not declared in this scope
TIMSK1 = _BV(TOIE1);
^
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h: In member function 'void TimerOne::detachInterrupt()':
C:\Users\guna_on3\Documents\Arduino\libraries\TimerOne-master/TimerOne.h:150:2: error: 'TIMSK1' was not declared in this scope
TIMSK1 = 0;
^
Error compiling.

@vanbwodonk
Copy link
Owner

vanbwodonk commented Sep 12, 2017

Usually need compatibility patch for arduino library, what avr do you use?

@vanbwodonk
Copy link
Owner

closed during inactive,

@fire1
Copy link

fire1 commented Mar 24, 2018

Atmega8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants