suu pen / SevenSegLed

Dependents:   kitchenTimer_Clock kitchenTimer LPC1114FN28_kitchenTimer_Clock SevenSegmentLedSample ... more

Files at this revision

API Documentation at this revision

Comitter:
suupen
Date:
Sat Nov 30 23:59:26 2013 +0000
Parent:
4:33e035f6a337
Child:
6:a1eb5de4146f
Commit message:
I Fixed a bug that was setting display method function of the display was missing.

Changed in this revision

SevenSegLed.cpp Show annotated file Show diff for this revision Revisions of this file
SevenSegLed.h Show annotated file Show diff for this revision Revisions of this file
--- a/SevenSegLed.cpp	Mon Nov 25 05:48:43 2013 +0000
+++ b/SevenSegLed.cpp	Sat Nov 30 23:59:26 2013 +0000
@@ -27,7 +27,7 @@
      _com_1(com_1), _com_2(com_2), _com_3(com_3), _com_4(com_4), _com_5(com_5), _com_6(com_6), _com_7(com_7), _com_8(com_8){
 #endif // USECOM4
     
-//    timer.attach_us(this, &SevenSegLed::segmentGrayDataKosin, 10000);       // led smooth control 10ms timer inttruupt
+    timer.attach_us(this, &SevenSegLed::segmentGrayDataKosin, 10000);       // led smooth control 10ms timer inttruupt
     
     // data table set of Brightness
     // DT_pwmGray[] = i ^ 2
@@ -69,6 +69,14 @@
     
 }
 
+/**************************************
+* display henka set
+* 0:smooth 1:hard
+* @SS131130
+**************************************/
+void SevenSegLed::smoothSet(uint8_t smooth){    
+    D_smooth = smooth;
+}
     
 
 /**************************************
@@ -166,7 +174,7 @@
       
  
         // dynamic shuturyoku shori
- segmentGrayDataKosin();
+ //segmentGrayDataKosin();
         output();
 }
 
@@ -311,3 +319,5 @@
     M_seg++;
 
 }
+
+
--- a/SevenSegLed.h	Mon Nov 25 05:48:43 2013 +0000
+++ b/SevenSegLed.h	Sat Nov 30 23:59:26 2013 +0000
@@ -24,8 +24,9 @@
 //***********************************************************************/
 //*                                                                     */
 //*    ledDynamic.h                                                     */
-//* V1.0 : 4digit(4com) display                                         */
-//* V2.0 : 8digit(8com) display                                         */
+//* ---------   V1.0 : 4digit(4com) display                             */
+//* ---------   V2.0 : 8digit(8com) display                             */
+//* @SS131130   V2.1 : HYOJI MODE NO TUIKA (smooth or hard)             */
 //*                                                                     */
 //***********************************************************************/
 #ifndef _SEVENSEGLED_H
@@ -40,6 +41,9 @@
  * //
  * //This program by one every second counts, do a 8-digit seven-segment LED display.
  * //
+ * // <compile option>
+ * //  SevenSegLed.h  "USECOM4" : YUKO JI SAIDAI 4COM. MUKO JI SAIDAI 8COM.
+ * //
  * //seven segment numeric LED Display : LTC4627P
  * //      http://www.excesssolutions.com/mas_assets/acrobat/ES5721.pdf
  * //
@@ -119,7 +123,8 @@
  * @endcode
  */
 
-#define USECOM4
+//#define USECOM4     // YUKO JI COM SUU 4KETA MADE. NUKO JI COM SUU 8KETA MADE.
+                    // LPC1114FN28 DEHA PIN SETTI DE "NC" ATUKAI DEKINAI NODE kitchen timer YO NI KONO commpile option WO TUKERU
 
 #include "types.h"
 
@@ -127,6 +132,11 @@
 class SevenSegLed {
 public:
 
+    //@SS131130 
+    /** Display henko set
+    * @param smooth 0:smooth  1:hard
+    */
+    void smoothSet(uint8_t smooth);
 
 
     /** Create a seven segment led array object connected to the specified DigitalOut pin