b15f/TLC5615.cpp
2019-03-25 15:02:24 +01:00

14 lines
243 B
C++

#include "TLC5615.h"
TLC5615::TLC5615(SPI& api, 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);
}