[RISOLTO] Programmazione TLC5947


ciao.
dopo aver seguito suggerimenti datimi nella sezione hardware, mi sono procurato le schedine della adafruit relative al led driver tlc5947.
che adesso vorrei provare far funzionare. ho scaricato dalla adafruit le librerie e la documentazione che forniva, ma, almeno su carta, non riesco capire come programmarli (settaggio, indirizzamento sulle uscite., etc etc)
quando ho usato maxx, leggendo la documentazione delle librerie fornite sono riuscito gestire il driver e fargli fare quello che volevo (peccato che all'atto pratico non è utilizzabile per miei scopi, ed ecco il perchè del tlc5947).
ho provato cercare in rete tutorial e similari, ma niente (per maxx invece ho trovato materiale volontà).
qualcuno ha da suggerirmi qualche link utile, materiale, etc?
grazie
andrea

adafruit da tutte le informazioni necessarie:
http://learn.adafruit.com/tlc5947-tlc59711-pwm-led-driver-breakout/programming
nella libreria é compreso un sketch di prova e nel testo sono spiegato le funzioni:
quote
adafruit_tlc5947(uint8_t n, uint8_t c, uint8_t d, uint8_t l)
call constructor create instance of tlc5947 pwm breakout driver.

   n = number of drivers (>1 if drivers chained)
   c = clock pin
   d = data pin
   l = latch pin

boolean begin(void);
call begin once in setup() function initialize devices.

void setpwm(uint8_t chan, uint16_t pwm);
call set pwm level channel.

   chan = channel
   pwm = pwm level (0 = minimum, 4095 = maximum)

void setled(uint8_t lednum, uint16_t r, uint16_t g, uint16_t b);
call set rgb value group of 3 channels

   lednum = led number (channel number of "red" pin divided 3)
   r = red level
   g = green level
   b = blue level

void write(void);
call after every change write new pwm levels device.


ciao uwe


Arduino Forum > International > Italiano > Software (Moderator: leo72) > [RISOLTO] Programmazione TLC5947


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support