このライブラリはSW認識を行います。 SWは1個から20個まで認識できます。 SWの認識周期は10msです。 SWはmbedの端子とGNDの間に接続します。 This library does the recognition SW. SW, one can recognize up to 20. Recognition of the SW period is 10ms. SW is connected to GND terminal of mbed. ON the SW, OFF (level) data output. Output data from OFF to ON edge of the SW. Output data from ON to OFF edge of the SW. SWのON,OFF(レベル)データを出力します。 SWのOFFからONのエッジデータを出力します。 SWのONからOFFのエッジデータを出力します。

Dependents:   kitchenTimer_Clock SwDigitalLibraryExampleProgram

Libraryの使い方については次のHPを参照してください。 http://mbed.org/users/suupen/code/SwDigitalLibraryExampleProgram/wiki/Homepage

Files at this revision

API Documentation at this revision

Comitter:
suupen
Date:
Sun Dec 11 01:01:56 2011 +0000
Parent:
1:356fb47220a0
Commit message:
V1.01 2011/12/11 example program bug fix

Changed in this revision

SwDigital.h Show annotated file Show diff for this revision Revisions of this file
--- a/SwDigital.h	Sat Nov 26 11:41:01 2011 +0000
+++ b/SwDigital.h	Sun Dec 11 01:01:56 2011 +0000
@@ -26,6 +26,7 @@
 /*                                                                     */
 /*                                                                     */
 /*    V0.1 : 2011/11/13                                                */
+/*    @001 : 2011/12/11  example program bug fix                       */
 /***********************************************************************/
 #ifndef _SWDIGITAL_H
 #define _SWDIGITAL_H
@@ -67,7 +68,7 @@
 * int main() {
 *    while(1) {
 *        // sw level and edge data refresh
-*        sw.transEdgeData();
+*        sw.refreshEdgeData();                          //@001
 *        
 *        // tact action (sw level = on : led1 = on)
 *        led1 = sw.checkLevel(0);