forked from TosIshiyama/pad12
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# pad12 | ||
12key pad with raspberry pi | ||
|
||
12キーPadをスキャンしてキーONをチェック | ||
https://www.jw-shop.com/P-keyboard-hmodule10/page119/detail.htm | ||
↑対象はこれ。(のコピー品と思われる http://www.aitendo.com/product/17251 これ) | ||
|
||
他のプログラムから呼び出すときは、 | ||
|
||
#初期設定 | ||
import pad12key | ||
pad12key.GPIO_INIT() | ||
#↑これは最初に一度だけ実行 | ||
|
||
#その後、 | ||
keyNo = pad12key.get() | ||
#↑これでkeyNoに1~12までが入ります。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters