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

Add support for ATtiny85 #81

Open
GeorgeM987 opened this issue Jun 10, 2021 · 1 comment
Open

Add support for ATtiny85 #81

GeorgeM987 opened this issue Jun 10, 2021 · 1 comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@GeorgeM987
Copy link

Have tried using the versions above with an Attiny85 but got a few errors comeback:

.pio\libdeps\attiny85\Servo\src\avr\Servo.cpp:82:44: error: cannot convert 'volatile uint8_t* {aka volatile unsigned char*}' to 'volatile uint16_t* {aka volatile unsigned int*}' for argument '2' to 'void handle_interrupts(timer16_Sequence_t, volatile uint16_t*, volatile uint16_t*)'

.pio\libdeps\attiny85\Servo\src\avr\Servo.cpp:128:5: error: 'TCCR1A' was not declared in this scope

.pio\libdeps\attiny85\Servo\src\avr\Servo.cpp:129:5: error: 'TCCR1B' was not declared in this scope

.pio\libdeps\attiny85\Servo\src\avr\Servo.cpp:136:5: error: 'TIFR1' was not declared in this scope

.pio\libdeps\attiny85\Servo\src\avr\Servo.cpp:137:5: error: 'TIMSK1' was not declared in this scope

Was just wondering if these are an easy fix, or if it's something I'm missing?!

Regards,
George M.

@per1234
Copy link
Contributor

per1234 commented Jun 26, 2022

These errors is because the library does not currently support the ATtiny85. Until such time as Arduino might add such support, I will recommend the excellent ATTinyCore boards platform, the installation of which includes a "Servo_ATTinyCore" library supporting the ATtiny85:

https://github.com/SpenceKonde/ATTinyCore/blob/master/avr/extras/ATtiny_x5.md#servo-support

As for PlatformIO users, I can only suggest looking for an alternative 3rd party Servo library.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 26, 2022
@per1234 per1234 changed the title V1.1.7 & V1.1.8 issues Add support for ATtiny85 Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants