1. 程式人生 > >android things sample(sample-button-master)測試

android things sample(sample-button-master)測試

key 階段 按鈕 但是 tps body post class str

android things組件組裝好後,開始運行一下官方的sample。

官方sample地址 https://github.com/androidthings

從最簡單的按鈕控制led燈亮的sample開始。

https://github.com/androidthings/sample-button

2017/12/26

根據官方的組圖,組裝好,按鈕和led燈後,現在處於燈一直亮不了的階段。

查找原因,按鈕的輸入的onKeyDown和onKeyUp事件是可以獲取的。

如果把負極的那個黑線拆掉,點擊button,可以控制亮燈,但是輸入的事件不能打印出來。

android things sample(sample-button-master)測試