Digistump Forums

The Digispark => Digispark Libraries => Topic started by: RC Navy on January 10, 2015, 02:49:03 pm

Title: Port of libraries for Digispark pro: ready for new 1.5.8C release
Post by: RC Navy on January 10, 2015, 02:49:03 pm
Hi,

I received this week this week the Digispark pro  :) 8) and I spent all the day to check/tweak the port of many libraries for this new target.

The libraires ported/tested/supported with the Digispark pro are:

These libraries are availbale on my Git repository:
https://github.com/RC-Navy/DigisparkArduinoIntegration/tree/master/libraries (https://github.com/RC-Navy/DigisparkArduinoIntegration/tree/master/libraries)

The TinySoftPwm library should partially work but needs some work since it was designed for original Digispark which has a single pin port, but the Digispark pro has 2 pin ports.

Enjoy,
Title: Re: Port of libraries for Digispark pro: ready for new 1.5.8C release
Post by: RC Navy on January 11, 2015, 11:57:33 am
Hi,

today, I added the support of the ATtiny167 (Digispark pro) in the TinySoftPwm library.

The main difficulty was that the pins are scattered on 2 ports on the Digispark pro whereas all the pins are part of the single PORB for the original Digispark.
As previously, you just have to declare your used PWM pin(s) in TinySoftPwm.h. All the required flash and RAM memories are reserved at compilation time.
To have a small memory footprint, try to use PWM pins within the same port PORTB or PORTA.

Tested on Digispark pro on pins 0 to 12.

This library is available on my Git repository:
https://github.com/RC-Navy/DigisparkArduinoIntegration/tree/master/libraries (https://github.com/RC-Navy/DigisparkArduinoIntegration/tree/master/libraries)

Enjoy,
Title: Re: Port of libraries for Digispark pro: ready for new 1.5.8C release
Post by: digistump on January 14, 2015, 06:25:31 pm
RC Navy

Thank you!
This will be updated in the next release!