ShiftPWM icon indicating copy to clipboard operation
ShiftPWM copied to clipboard

Porting to the attiny85

Open BogdanTheGeek opened this issue 8 years ago • 1 comments

Hi, i would like to know if its possible to get this library to work with the attiny. Someone tried before, but it doesn't work and they cannot maintain it anymore. I would think it is possible , but the code that takes care of serial communications needs to be replaced as the attiny doesn't have hardware serial.

this are the errors that i get when trying to compile :

In file included from \arduino-1.0.6\libraries\ShiftPWM-master/ShiftPWM.h:25,
                 from ShiftPWM_RGB_Example.ino:35:

/pins_arduino_compile_time.h:318: error: 'PORTC' was not declared in this scope

pins_arduino_compile_time.h:319: error: 'PORTD' was not declared in this scope

In file included from ShiftPWM_RGB_Example.ino:35:

ShiftPWM.h:57: error: 'MOSI' was not declared in this scope

ShiftPWM.h:57: error: 'SCK' was not declared in this scope

ShiftPWM.h: In function 'void ShiftPWM_handleInterrupt()':

ShiftPWM.h:131: error: 'SPDR' was not declared in this scope

ShiftPWM.h:147: error: 'SPSR' was not declared in this scope

ShiftPWM.h:147: error: 'SPIF' was not declared in this scope

ShiftPWM.h:153: error: 'SPSR' was not declared in this scope

ShiftPWM.h:153: error: 'SPIF' was not declared in this scope

BogdanTheGeek avatar Feb 18 '17 12:02 BogdanTheGeek

Check link on comments https://www.youtube.com/watch?v=hr4oPoIcOFc. It is not for attiny85 but...

colesnicov avatar Oct 16 '17 20:10 colesnicov