Hello all,
im new here. while trying to upload the cyber falls code to nano i keep getting this error below. any help would be greatly appreciated
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino: In function 'void setup()':
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:58:3: error: 'TCCR1' was not declared in this scope
TCCR1 = _BV(PWM1A) |_BV(CS13) | _BV(CS12); // 1:2048 prescale
^~~~~
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:58:3: note: suggested alternative: 'TCCR1A'
TCCR1 = _BV(PWM1A) |_BV(CS13) | _BV(CS12); // 1:2048 prescale
^~~~~
TCCR1A
In file included from c:\users\marius\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\marius\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\Marius\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\Marius\AppData\Local\Temp\arduino\sketches\4C285B565ADF6C56AAD8AF14FEB7CEE8\sketch\NeoPixel_Cyber_Falls_Wig.ino.cpp:1:
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:58:16: error: 'PWM1A' was not declared in this scope
TCCR1 = _BV(PWM1A) |_BV(CS13) | _BV(CS12); // 1:2048 prescale
^
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:58:28: error: 'CS13' was not declared in this scope
TCCR1 = _BV(PWM1A) |_BV(CS13) | _BV(CS12); // 1:2048 prescale
^
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:58:28: note: suggested alternative: 'CS10'
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:71:3: error: 'OCR1C' was not declared in this scope
OCR1C = 255; // ~30 Hz
^~~~~
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:71:3: note: suggested alternative: 'OCR1A'
OCR1C = 255; // ~30 Hz
^~~~~
OCR1A
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:73:3: error: 'TIMSK' was not declared in this scope
TIMSK |= _BV(TOIE1); // Enable overflow interrupt
^~~~~
D:\Downloads\NeoPixel_Cyber_Falls_Wig\NeoPixel_Cyber_Falls_Wig.ino:73:3: note: suggested alternative: 'TIMSK0'
TIMSK |= _BV(TOIE1); // Enable overflow interrupt
^~~~~
TIMSK0
exit status 1
Compilation error: 'TCCR1' was not declared in this scope