「智慧生活科技專業社群」由 Nantou.py 使用者社群與國立虎尾科技大學電機資訊學院共同維護,匯集關注Python、人工智慧、物聯網與智慧生活應用的教師、學生及實務工作者。本社群以「科技融入生活、教學連結場域、知識促進共好」為核心,分享Python程式設計、AI協作學習、AIoT、網際網路與雲端服務、智慧農業、福祉科技、永續發展及USR社會實踐等內容,並將技術導入課堂、社區與真實生活場域。部分文章運用生成式AI協助資料整理、內容架構、程式範例與文字潤飾,文章主題、場域經驗、內容查核及最終修訂則由作者與社群成員負責。我們期待透過人與AI協作,讓科技成為改善生活、連結世代、支持地方與實踐永續的力量。
HIDAPI在Linux的測試步驟1.下載HIDAPIhttps://github.com/downloads/signal11/hidapi/hidapi-0.7.0.zip2.安裝相關套件sudo apt-get install libudev-dev pkg-config libudev-dev3.解開hidapi-0.7.0.zipunzip hidapi-0.7.0.zip4.進入Linux目錄cd hidapi-0.7.0/linux/5.編繹函式庫與測試程式make6.測試程式sudo ./hidtest以下是我電腦的輸出結果Device Found type: 1a86 e008 path: 0002:0002:00 serial_number: (null) Manufacturer: (null) Product: (null) Release: 1200 Interface: 0Device Found type: 046d c521 path: 0003:0002:00 serial_number: (null) Manufacturer: Logitech Product: USB Receiver Release: 5701 Interface: 0Device Found type: 046d c521 path: 0003:0002:01 serial_number: (null) Manufacturer: Logitech Product: USB Receiver Release: 5701 Interface: 1
謝謝
HIDAPI在Linux的測試步驟
回覆刪除1.下載HIDAPI
https://github.com/downloads/signal11/hidapi/hidapi-0.7.0.zip
2.安裝相關套件
sudo apt-get install libudev-dev pkg-config libudev-dev
3.解開hidapi-0.7.0.zip
unzip hidapi-0.7.0.zip
4.進入Linux目錄
cd hidapi-0.7.0/linux/
5.編繹函式庫與測試程式
make
6.測試程式
sudo ./hidtest
以下是我電腦的輸出結果
Device Found
type: 1a86 e008
path: 0002:0002:00
serial_number: (null)
Manufacturer: (null)
Product: (null)
Release: 1200
Interface: 0
Device Found
type: 046d c521
path: 0003:0002:00
serial_number: (null)
Manufacturer: Logitech
Product: USB Receiver
Release: 5701
Interface: 0
Device Found
type: 046d c521
path: 0003:0002:01
serial_number: (null)
Manufacturer: Logitech
Product: USB Receiver
Release: 5701
Interface: 1
謝謝
刪除