HT Color Sensor V2 Block Advanced

HT Color sensor v2,算是競賽組非常常使用的一個感測器,但她有個致命問題,他的I2C通道設計異常,您可以試看看,寫一個無線Loop,裡面放讀取V2的Block,執行幾秒後按返回鍵停止程式,接著再開啟一次程式,你會發現讀值不變化了,這是因為關閉程式導致通道當機,也是為啥競賽組會常常碰到V2讀不到東西的狀況。

我們的方塊已經針對此問題作修復,強烈建議各位選手必須使用這個Block以確保V2不會眼瞎。

另外我們加入了HSV的三維色域模式,可以更精確地讀到物件顏色。

Update:

Version 1.3:

.Initial release.
.Add Frequency Setting mode.
.Add “RGB to HSVL” mode.
.Fix the bug of HT IIC protocol, prevent some communication failed, (When you reading sensor value then interrupt the program, next time you reading the sensor, the sensor will get stuck).
.Optimized the low level functions.

Download:

Download Link(GitHub):https://github.com/a10036gt/EV3-AdvHTColorV2-Block
Author:OFDL HYT 、 OFDL HSU
Ver:1.3