Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
TLC5940.h
00001 #ifndef TLC5940_H_ 00002 #define TLC5940_H_ 00003 00004 #include "mbed.h" 00005 00006 class TLC5940 { 00007 private: 00008 SPI * _spi; 00009 PwmOut * _gsclk; 00010 DigitalOut * _xlat; 00011 DigitalOut * _blank; 00012 Ticker * _t; 00013 int gs_data[16]; 00014 public: 00015 TLC5940(PinName mosi, PinName miso, PinName sck, PinName xlat, PinName blank, PinName gsclk); 00016 void setServo(int ch, int val); 00017 void flush(); 00018 void run(); 00019 void refresh(); 00020 }; 00021 00022 #endif /* TLC5940_H_ */
Generated on Tue Jul 19 2022 00:52:38 by
1.7.2