linux, go!
This commit is contained in:
parent
25f313fbf2
commit
d5ca50f475
16 changed files with 414 additions and 273 deletions
13
firmware/tlc5615.cpp
Normal file
13
firmware/tlc5615.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "TLC5615.h"
|
||||
|
||||
TLC5615::TLC5615(SPI& spi, uint8_t adr) : spi(spi), adr(adr)
|
||||
{
|
||||
}
|
||||
|
||||
void TLC5615::setValue(uint16_t val) const
|
||||
{
|
||||
spi.setAdr(adr);
|
||||
spi.pushByte(val >> 6);
|
||||
spi.pushByte(val << 2);
|
||||
spi.setAdr(SPIADR::NONE);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue