54 else if (percent > 20) {
60 else if (percent > 2) {
84 if (m_out.m_count == m_out.MAX)
return (
UINT16_MAX);
87 uint32_t run = stop - start;
88 return ((m_out.m_count * run) / (ms * 1000L));
98 TCS230::IRQPin::on_interrupt(uint16_t arg)
102 if (m_count < MAX)
return;
uint16_t sample(uint8_t ms=10)
static void delay(uint32_t ms)
void photodiode(Filter type)
void frequency_scaling(uint8_t percent)
TCS230(Board::ExternalInterruptPin out=Board::EXT1, Board::DigitalPin s0=Board::D4, Board::DigitalPin s1=Board::D5, Board::DigitalPin s2=Board::D6, Board::DigitalPin s3=Board::D7)