elcojacobs / ShiftPWM

Arduino Library for software PWM with shift registers
MIT License
176 stars 86 forks source link

Porting to the attiny85 #11

Open BogdanTheGeek opened 7 years ago

BogdanTheGeek commented 7 years ago

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
colesnicov commented 6 years ago

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