Digistump Forums
The Digispark => Digispark Pro Support => Topic started by: gkr on August 17, 2014, 08:07:11 am
-
I was reading the source for the digispark pro and noticed some strange thing, like setting bit in register were they don't exit. So I looked for a repository where I could find the source for the digispark pro software but I found nothing. Only the archive available, coming from sourceforge.
Is there a officially sanctioned way to contribute to the digispark ?
-
It should all be in https://github.com/digistump
From what I see the pro part hasn't been uploaded yet then.
-
until I get the pro files up there - feel free to send me any fixes or post them here (support@digistump.com)
-
Right now, I only looked at analogWrite, from wiring_analog.c. I just checked the file header, look like it have never been updated for the ATtiny87 or ATtiny167 so it might be upstream fault.
What I have seen is at line 127 and 148, sbi(TCCR1B, WGM10) which set the bit WGM10 of register TCCR1B. WGM10 is a bit of TCCR1A, not TCCR1B. The correct name for the bit is CS10 (same value).
Also, if I read correctly, only pin PB0 and PB1 can be used for PWM while ATtiny167 can output PWM on all PBx pin.