DFRobot/DFRobot_AS7341

Channel to ADC mapping

Opened this issue · 2 comments

Can someone please explain where the information used to configure phtotodiode/ADC channels is provided by AMS for the AS7341?

For example in the function void DFRobot_AS7341::F5F8_Clear_NIR() {
writeReg(byte(0x00), byte(0x00));
writeReg(byte(0x01), byte(0x00));
writeReg(byte(0x02), byte(0x00));
writeReg(byte(0x03), byte(0x40));
writeReg(byte(0x04), byte(0x02));
writeReg(byte(0x05), byte(0x00));
writeReg(byte(0x06), byte(0x10));
...

The datasheet provides zero information on configuring these registers in this way, but does mention the ability to have this feature in the description. I'm curious to know where the authors acquired this missing information. Thank you.

The SMUX setup is described in an application note from AMS. I managed to get it by downloading one of their evalSW software downloads, ( https://ams.com/as7341#tab/tools)
AS7341_AN000666_1-01.pdf

searched too long for this AN, big thx