このライブラリは1桁から8桁までのSeven segment Numeric LEDを制御します。 LEDはanode commonとcathode common を使用することができます。 LEDの表示は1秒で表示をスムースに切り替えるモードと、直ぐに切り替えるモードの2つのモードを選択することができます。 This library to control the Seven segment Numeric LED 8 digit of 1. You can use the LED cathode common and anode common. Switch mode LED display and a second displayed a smooth, you can choose two modes to switch modes quickly.

Dependents:   kitchenTimer_Clock kitchenTimer LPC1114FN28_kitchenTimer_Clock SevenSegmentLedSample ... more

Revision:
2:cca0fd8ccb97
Parent:
1:3429249e30f9
Child:
3:f4680c84b347
Child:
4:33e035f6a337
--- a/SevenSegLed.h	Fri Dec 02 13:53:34 2011 +0000
+++ b/SevenSegLed.h	Fri Dec 02 14:03:00 2011 +0000
@@ -131,8 +131,8 @@
     /** Create a seven segment led array object connected to the specified DigitalOut pin
     * @param commonPole The polarity of the seven segment led common  0:Anode common, 1:Cathode common
     * @param smooth Reading the LED display method.  0:Smooth changing the LED display in one second  1:Quickly changing the LED display
-    * @param seg_a - seg_p DigitalOut pin to connect to.    To provide members with an array of uint8_t digit minutes. 4 digits maximum
-    * @param com_1 - com_4 DigitalOut pin to connect to.    To provide members with an array of uint8_t digit minutes. 4 digits maximum   
+    * @param seg_a - seg_p DigitalOut pin to connect to.    To provide members with an array of uint8_t digit minutes.
+    * @param com_1 - com_8 DigitalOut pin to connect to.    To provide members with an array of uint8_t digit minutes. 8 digits maximum   
     */
     SevenSegLed(uint8_t commonPole, uint8_t smooth, PinName seg_a, PinName seg_b, PinName seg_c, PinName seg_d, PinName seg_e, PinName seg_f, PinName seg_g, PinName seg_p,
                 PinName com_1 = NC, PinName com_2 = NC, PinName com_3 = NC, PinName com_4 = NC,
@@ -164,16 +164,16 @@
 
  
 uint8_t D_7seg[Z_ketaSuu];    // digit number display request 0:"0", 1:"1", ... , 9:"9", A:"A", B:"b", C:"C", D:"d", E:"E", F:"F"
-                            // [0]:digit1, [1]:digit2, ... ,[3]:digit4
+                            // [0]:digit1, [1]:digit2, ... ,[7]:digit8
 uint8_t D_dot[Z_ketaSuu];   // digit dot display request   0:off  1(not 0):on
-                            // [0]:digit1, [1]:digit2, ... ,[3]:digit4
+                            // [0]:digit1, [1]:digit2, ... ,[7]:digit8
                             
 
 uint8_t D_7segGray[Z_ketaSuu][Z_segSuu];    // hyoji segment no gray data 0:syoto 1:min - 10:max
 
 uint8_t DT_pwmGray[Z_grayMax + 1];  // gray data kara pwm data heno henkan table
 
-uint8_t D_comNull;  // comX Null check No set (0:all com is NC 1:com1 connect, 2:com2 connect,...,4:com4 connect(all com connect)
+uint8_t D_comNull;  // comX Null check No set (0:all com is NC 1:com1 connect, 2:com2 connect,...,8:com8 connect(all com connect)
 
 uint8_t D_smooth; // Those who will be reading the LED display  0:smooth 1:hard
 #define Z_smooth (0)