lucas53 / arduino-tiny

Automatically exported from code.google.com/p/arduino-tiny
Other
0 stars 0 forks source link

Servo support #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Write some arduino code useing '#include <Servo.h>' to use the servo library 
which is available for the arduino uno (and more)
2.Hit compile
3.Watch the error messages pop up

What is the expected output? What do you see instead?
What I get is: 
E:\arduino-0022\libraries\Servo\Servo.cpp: In function 'void __vector_3()':
E:\arduino-0022\libraries\Servo\Servo.cpp:105: error: cannot convert 'volatile 
uint8_t*' to 'volatile uint16_t*' for argument '2' to 'void 
handle_interrupts(timer16_Sequence_t, volatile uint16_t*, volatile uint16_t*)'
E:\arduino-0022\libraries\Servo\Servo.cpp: In function 'void 
initISR(timer16_Sequence_t)':
E:\arduino-0022\libraries\Servo\Servo.cpp:151: error: 'TCCR1A' was not declared 
in this scope
E:\arduino-0022\libraries\Servo\Servo.cpp:152: error: 'TCCR1B' was not declared 
in this scope
E:\arduino-0022\libraries\Servo\Servo.cpp:159: error: 'TIFR1' was not declared 
in this scope
E:\arduino-0022\libraries\Servo\Servo.cpp:160: error: 'TIMSK1' was not declared 
in this scope

And it is not compiling

What version of the product are you using? On what operating system?
I'm using the arduino IDE v22 on windows 7 ultimate and added the ATtiny85 
cores accordingly to the readme.txt file in the downloaded package

Could you please consider implementing the servo library into the ATtiny85 core.

Thanks in advance

Original issue reported on code.google.com by webmaste...@hotmail.com on 20 Oct 2011 at 6:56

GoogleCodeExporter commented 8 years ago

Until there is a "hardware" implementation, give SoftwareServo a try...

http://arduino.cc/forum/index.php?topic=62912.0

http://arduino.cc/forum/index.php?topic=71668.0

Original comment by arduino....@gmail.com on 20 Oct 2011 at 7:22

GoogleCodeExporter commented 8 years ago
Thanks. It took me a while, but it finally works.
You have a really great ATtiny core BTW

Original comment by webmaste...@hotmail.com on 21 Oct 2011 at 6:36

GoogleCodeExporter commented 8 years ago

Thank you.

Original comment by arduino....@gmail.com on 21 Oct 2011 at 7:23