このライブラリは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

Revision:
1:356fb47220a0
Parent:
0:4787131a6a18
Child:
2:af5fbc75b7bf
--- a/SwDigital.h	Sat Nov 26 11:38:42 2011 +0000
+++ b/SwDigital.h	Sat Nov 26 11:41:01 2011 +0000
@@ -53,18 +53,18 @@
 * //=============================================
 *
 *
-*#include "mbed.h"
-*#include "SwDigital.h"
+* #include "mbed.h"
+* #include "SwDigital.h"
 *
-*SwDigital sw(p20,p21);  // p20 : sw1 control LED1,LED2
+* SwDigital sw(p20,p21);  // p20 : sw1 control LED1,LED2
 *                        // p21 : sw2 control LED3,LED4
 *
-*DigitalOut led1(LED1);
-*DigitalOut led2(LED2);
-*DigitalOut led3(LED3);
-*DigitalOut led4(LED4);
+* DigitalOut led1(LED1);
+* DigitalOut led2(LED2);
+* DigitalOut led3(LED3);
+* DigitalOut led4(LED4);
 *
-*int main() {
+* int main() {
 *    while(1) {
 *        // sw level and edge data refresh
 *        sw.transEdgeData();
@@ -85,7 +85,7 @@
 *             led4 = !led4;
 *        }
 *    }
-*}
+* }
 *
 * @endcode
 */