rename
This commit is contained in:
parent
949591a50d
commit
b6d0b4c8f5
29 changed files with 0 additions and 0 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