Author Topic: Digispark Pro software source  (Read 4492 times)

gkr

  • Newbie
  • *
  • Posts: 8
Digispark Pro software source
« 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 ?

DeuxVis

  • Full Member
  • ***
  • Posts: 107
Re: Digispark Pro software source
« Reply #1 on: August 18, 2014, 03:55:52 am »
It should all be in https://github.com/digistump

From what I see the pro part hasn't been uploaded yet then.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Digispark Pro software source
« Reply #2 on: August 18, 2014, 05:34:00 pm »
until I get the pro files up there - feel free to send me any fixes or post them here (support@digistump.com)

gkr

  • Newbie
  • *
  • Posts: 8
Re: Digispark Pro software source
« Reply #3 on: August 19, 2014, 03:06:45 am »
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.