x
PCA9745B Class Reference
Using the TLC5 class to control an LED: More...
#include <PCA9745B.h>
Public Member Functions | |
PCA9745B (uint8_t number, PinName SCLK, PinName MOSI) | |
Set up the PCA9745B. |
Detailed Description
Using the TLC5 class to control an LED:
#include "mbed.h" #include "PCA9745B.h" // Create the TLC5711 instance PCA9745B tlc(1, p7, p5); int main() { while(1) { // Led1 -> R0 tlc.setLED(0, 65535, 0, 0); tlc.write( ); tlc.setLED(1, 0, 0, 0); tlc.write( ); tlc.setLED(2, 0, 0, 0); tlc.write( ); tlc.setLED(3, 0, 0, 0); tlc.write( ); wait( 1 ); } }
Definition at line 40 of file PCA9745B.h.
Constructor & Destructor Documentation
PCA9745B | ( | uint8_t | number, |
PinName | SCLK, | ||
PinName | MOSI | ||
) |
Set up the PCA9745B.
- Parameters:
-
SCLK - The SCK pin of the SPI bus MOSI - The MOSI pin of the SPI bus number - The number of PCA9745Bs
Definition at line 5 of file PCA9745B.cpp.
Generated on Thu Jul 14 2022 02:17:11 by 1.7.2