Library MD_TCS230 - some typos

Because I was having some problems using the TCS230 Library MD_TCS230, I had to consult the documentaion at

While searching for a solution to my problem, I came across these methods:
classes - class list - MD_TCS230 - setFilter
Set the outputs s0, s1 to match the specified photodiode filter.

and

classes -class list - MD_TCS230 - setFrequency
Set the outputs s2, s3 to match the specified frequency prescaler.

In the section
arduino tcs230 library - supported hardware
it is clearly stated that
S0 and S1 are responsible for Output Freq Scaling
and
S2 and S3 for Photodiode Selection
So, they were obviously mixed up.
It also states:

"Default library value is 100% prescaler (TCS23_FREQ_HI)"
where the zero is clearly missing.
Under
files - file members - variables
you will find the correct constants:
TCS230_FREQ_HI : MD_TCS230.h
TCS230_FREQ_LO : MD_TCS230.h
TCS230_FREQ_MID : MD_TCS230.h
TCS230_FREQ_OFF : MD_TCS230.h

Although the revision history ranges from 2013 to 2018, these typos have not been corrected.
Unfortunately, I have not been able to contact the author, Marco Colli (marco_c) at majicdesigns.
Perhaps someone will have better luck than me.

I do not know where you tried to contact the author (@marco_c). The usual way is to raise an issue on the issue tracker on github.com:
MD_TCS230/issues

1 Like

Thank @sterretje for the heads up on this post.

The normal way to contact me is through the email address published in the library.properties file, through the github issues or using this forum.

Anyway, the typos have been corrected and new verion 1.2.5 should be up shortly. I guess nobody noticed because the library worked correctly.

1 Like