The TLC5940 is capable of "extending" the number of PWM pins of the Arduino. It works jsut like a fancy shift register and you can program a lot more digital out pins than there are ports on the Arduino or Pinoccio.
There is already a good library that "talks" to the chip, but that's for Arduino.
The problem is that the library uses Arduino pins D3, D9, D10, D11 and D13 and Pinoccio only has up to D8..
Additionally, it seems that they are using other features of the pins, so we can't just replace a reference from D9 to D4 and so on. Here is a quote from a forum post asking how to change the library's digital pin mappings:
SIN and SCLK can be changed to any pins by switching to "bit-bang" mode (by default the library uses the hardware SPI module, which has fixed output pins).
BLANK and XLAT are driven by the hardware timer1, which has fixed output pins (they can't be changed).
GSCLK is driven by timer2, which also has fixed output pins.
1) So, the main question is: what pins can we use on the Pinoccio board that will be equivalent to the Arduino board?
2) Is is possible to just use the library, as is, by only connecting the pins on the equivalent position on the Pinoccio? Or is it possible to just do the connection and correct a few #defines in the library?