Second revision of test code for Polyathalon sensor board.

Dependencies:   mbed MODDMA

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tlc5916.cpp Source File

tlc5916.cpp

00001 
00002 #include "mbed.h"
00003 #include "tlc5916.h"
00004 
00005 void
00006 TLC5916::write_reg(uint8_t byte)
00007 {
00008     pinLE = 0;
00009     spi.write(byte);
00010     wait_us(1);
00011     pinLE = 1;
00012     wait_us(1);
00013     pinLE = 0;
00014 }
00015 
00016 void
00017 TLC5916::enable(void)
00018 {
00019     pinnOE = 0;
00020 }
00021 
00022 void
00023 TLC5916::disable(void)
00024 {
00025     pinnOE = 1;
00026 }