Skip to content

Commit

Permalink
Added forgoten declaration of normalizeRGBColors()
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSaw committed Mar 12, 2021
1 parent a8cc295 commit 93525eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/modm/driver/color/tcs3472.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ struct tcs3472
LOW_THRESH_HIGH_BYTE = 0x05, //!< High byte of low interrupt threshold
HIGH_THRESH_LOW_BYTE = 0x06, //!< Low byte of high interrupt threshold
HIGH_THRESH_HIGH_BYTE = 0x07, //!< High byte of high interrupt threshold
RELOAD_INTERRUPT = 0x66, //!< Reset Interrupt special command
RELOAD_INTERRUPT = 0x66, //!< Reset Interrupt special command
CDATALOW = 0x14, //!< Low byte of ADC clear channel
CDATAHIGH = 0x15, //!< High byte of ADC clear channel
RDATALOW = 0x16, //!< Low byte of ADC red channel
Expand Down Expand Up @@ -192,7 +192,7 @@ class Tcs3472 : public tcs3472, public modm::I2cDevice<I2cMaster, 2>
RF_BEGIN();

commandBuffer[0] =
0x80 // write command
0x80 // write command
| static_cast<uint8_t>(RegisterAddress::RELOAD_INTERRUPT); // at this address

this->transaction.configureWrite(commandBuffer, 1);
Expand All @@ -213,7 +213,7 @@ class Tcs3472 : public tcs3472, public modm::I2cDevice<I2cMaster, 2>
//!@}

//! \brief Reading clear can help to determine lowThreshold and highThreshold
// for the Interrupt-comparator
// for the Interrupt-comparator
inline static UnderlyingType
getOldClear()
{
Expand All @@ -238,6 +238,10 @@ class Tcs3472 : public tcs3472, public modm::I2cDevice<I2cMaster, 2>
modm::ResumableResult<bool>
refreshAllColors();

//! \brief use the clear value to scale the RGB Values
void
normalizeRGBColors();

// MARK: - TASKS
modm::ResumableResult<bool>
initialize(Enable flags = Enable::POWER_ON__POLLING)
Expand Down

0 comments on commit 93525eb

Please sign in to comment.