PiSlingers library for AHRC competitions
tlc5916.cpp
- Committer:
- mpanetta
- Date:
- 2012-11-03
- Revision:
- 2:a9351d7f92b4
- Parent:
- 0:d4427d048a98
File content as of revision 2:a9351d7f92b4:
#include "mbed.h" #include "tlc5916.h" void TLC5916::write_reg(uint8_t byte) { pinLE = 0; spi.write(byte); wait_us(1); pinLE = 1; wait_us(1); pinLE = 0; } void TLC5916::enable(void) { pinnOE = 0; } void TLC5916::disable(void) { pinnOE = 1; }