fredericplante/rogue-code

Attiny85 SoftPWM

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Trying to compile any Attiny85 code including this library

What is the expected output? What do you see instead?
A functional Attiny85 with working software PWM

What version of the product are you using? On what operating system?
Ubuntu Linux and Arduino IDE 1.5.5
Arduino Leonardo as ISP
(The set is fully functioning and working every day)

Please provide any additional information below.
This is the output when trying to compile. It probably is a compatibility 
problem.

/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp: In function ‘void 
SoftPWMBegin(uint8_t)’:
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘TIFR2’ was 
not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘TOV2’ was 
not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘TCCR2B’ 
was not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘CS21’ was 
not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘TCCR2A’ 
was not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘WGM21’ was 
not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘OCR2A’ was 
not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘TIMSK2’ 
was not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:156: error: ‘OCIE2A’ 
was not declared in this scope
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp: In function ‘void 
SoftPWMSet(int8_t, uint8_t, uint8_t)’:
/home/john/sketchbook/libraries/SoftPWM/SoftPWM.cpp:205: error: ‘TCNT2’ was 
not declared in this scope





I am working on this project:
http://www.instructables.com/id/Attiny85-as-a-StepDir-Stepper-Motor-Controller/

And you library will change the world! It is needed for microstepping ability.


Thank you for your time...

Original issue reported on code.google.com by john.tor...@gmail.com on 17 Jun 2014 at 1:34