libftdi Archives
|
From: | Vladimir Yakovlev <nagos@xxxxxxxx> |
---|---|
To: | libftdi@xxxxxxxxxxxxxxxxxxxxxxx |
Date: | Wed, 16 Mar 2011 16:15:50 +0300 |
2011/3/16 Petr Jakeš <petr.jakes@xxxxxx>
SPI - easy, look at code of flashrom project http://flashrom.org/trac/flashrom/browser/trunk/ft2232_spi.c PWM - i doubt you can do it. When using bitbang mode, data rate is unstable, CPU need constantly send data (every pwm clock). It is bad idea. If you drive LED brightness from this PWM, it will blink unstable (sometimes with big pause). I recommend use something like this http://focus.ti.com/docs/prod/folders/print/tlc5941.html It has SPI controlled PWM dimmer (4096-step), no need to do it by software. libftdi - see http://www.intra2net.com/en/developer/libftdi for details. |