M Mostez Well-Known Member Licensed User Longtime User Nov 20, 2016 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2016 #2 You can call pulseIn with inline C: https://www.b4x.com/android/forum/threads/ultrasonic-ranging-module-hc-sr04.65786/ Upvote 0
You can call pulseIn with inline C: https://www.b4x.com/android/forum/threads/ultrasonic-ranging-module-hc-sr04.65786/
M Mostez Well-Known Member Licensed User Longtime User Nov 20, 2016 #3 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? Code: Copy b4r_main::_pulsduration = pulseIn(o->toULong(),HIGH); Upvote 0
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? Code: Copy b4r_main::_pulsduration = pulseIn(o->toULong(),HIGH);
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2016 #4 Yes, you will need to create two methods. One with HIGH and one with LOW. Upvote 0