7 segment display library for mbed This routine support 2,4 and 8 digit anode-common or cathode-common LED.

Dependents:   7segMbed

Revision:
3:77ec0c031053
Parent:
2:6f63a5e21d08
Child:
4:858e42224b50
diff -r 6f63a5e21d08 -r 77ec0c031053 Sseg.h
--- a/Sseg.h	Thu Aug 07 02:32:16 2014 +0000
+++ b/Sseg.h	Thu Aug 07 02:36:42 2014 +0000
@@ -55,7 +55,7 @@
     /**
      * create an 2 digit seven segment driver
      *
-     * @param PinName a Pin No for segment A
+     * @param PinName a Pin No for segment A
      * @param PinName b Pin No for segment B
      * @param PinName c Pin No for segment C
      * @param PinName d Pin No for segment D
@@ -63,7 +63,7 @@
      * @param PinName f Pin No for segment F
      * @param PinName g Pin No for segment G
      * @param PinName dp Pin No for segment DP
-     * @param PinName d1 Pin No for dight 1
+     * @param PinName d1 Pin No for dight 1
      * @param PinName d2 Pin No for dight 2
      */
     Sseg(PinName a,PinName b,PinName c,PinName d,
@@ -131,12 +131,12 @@
     void setAcommon(void);
 
     /**
-     * get charcter pattern from number 
+     * get a charcter pattern from a number
      *
      * @param i number
      *
-     * @returns bit pattern of number i
-     *
+     * @returns bit pattern of number i
+     *
      */
     char segCh(char i);
 
@@ -159,7 +159,7 @@
     /**
      * write a number to LED 
      *
-     * @param number
+     * @param d number
      *
      */
     void writeNum(int n);
@@ -167,7 +167,7 @@
     /**
      * write a number to 2 dight LED 
      *
-     * @param number
+     * @param n number
      *
      */
     void writeNum2(int n);
@@ -175,7 +175,7 @@
     /**
      * write a number to 4 dight LED 
      *
-     * @param number
+     * @param n number
      *
      */
     void writeNum4(int n);
@@ -232,7 +232,7 @@
     /**
      * control zero supress bit
      *
-     * @param 1 : supress on, 0: supress off
+     * @param t, 1:supress on, 0:supress off
      *
      */
     void setZeroSupress(bool t);
@@ -240,7 +240,7 @@
     /**
      * write hex number to DISPLAY
      *
-     * @param number
+     * @param n number
      *
      */
     void writeHex(int n);
@@ -248,7 +248,7 @@
     /**
      * write hex number to DISPLAY
      *
-     * @param (long)number
+     * @param n (long)number
      *
      */
     void writeHex(long n);