[問題]為何紅外線無法發送成功

作者: chenyenda (小實)   2015-05-29 16:49:24
各位大大好
列舉程式片段
View.OnClickListener mSendClickListener = new View.OnClickListener() {
public void onClick(View v) {
if (!mCIR.hasIrEmitter()) {
mFreqsText.setText("No");
Log.e(TAG, "No \n");
return;
}
int[] pattern = {340, 172, 22, 22, 22, 65, 22, 65, 22, 65, 22, 22, 22,
65, 22, 65, 22, 65, 22, 65, 22, 65, 22, 64, 22, 23, 22, 22, 22,
22, 22, 23, 22, 65, 22, 22, 22, 65, 22, 65, 22, 22, 22, 22, 22,
22, 22, 22, 22, 23, 22, 22, 22, 22, 22, 22, 22, 64, 22, 22, 22,
22, 22, 22, 22, 23, 22, 1600, 341, 86, 22, 3677, 341, 86, 22, 367};
mCIR.transmit(38000, pattern);
mFreqsText.setText("GOGO!");
}
};
為何程式會過,但放到HTC M8手機上執行時,紅外線卻發送不出來?

Links booklink

Contact Us: admin [ a t ] ucptt.com