Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TCS3200 Color SensorIntroduction | ||||||||
Line: 76 to 76 | ||||||||
If we want to read the OUT signal at full speed, then an external high speed counter is needed. Otherwise, we can fix the S0 and S1 signals to 0 and 1 respectively and therefore fix the frequency divider to 2%. This liberates 2 GPIO lines for other purposes. | ||||||||
Added: | ||||||||
> > | There is still a problem with the meas_freq.py program. The code: while tcs3200._end_tick == 0: time.sleep_ms(10)will wait forever, if the number of cycles to be measured, is never reached. This can happen e.g. if the OUT signal is assigned a wrong GPIO pin. The problem can be solved by starting a timeout counter when the measurement is started. This counter can be used to raise an exception if reaching the _cycles limit takes too long. Calibration | |||||||
-- ![]() Comments |