Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: kitchenTimer_Clock kitchenTimer LPC1114FN28_kitchenTimer_Clock SevenSegmentLedSample ... more
Revision 2:cca0fd8ccb97, committed 2011-12-02
- Comitter:
- suupen
- Date:
- Fri Dec 02 14:03:00 2011 +0000
- Parent:
- 1:3429249e30f9
- Child:
- 3:f4680c84b347
- Child:
- 4:33e035f6a337
- Commit message:
- V2.0 2011/12/02 seven segment LED 8digit.
Changed in this revision
| SevenSegLed.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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)