B4R Question TCS3200 COLOR Sensor

Mostez

Well-Known Member
Licensed User
Hello,
I'm asking if any one worked with TSC3200 Color Sensor, the principle is easy but that 'pulsein' function is not supported, I would like to design 'printed color picker' to pick color and store its element and display them on LCD.

any ideas how to measure the output frequency of TSC3200 that represents color?

Thanks
 

Mostez

Well-Known Member
Licensed User
Thanks Erel, may I ask how to modify the function to accept another parameter, the pulse start edge (high or low) because it is fixed only to 'high' or to write a second function with fixed 'low' parameter?

B4X:
b4r_main::_pulsduration = pulseIn(o->toULong(),HIGH);
 
Upvote 0
Top