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 3:f4680c84b347, committed 2012-04-21
- Comitter:
- suupen
- Date:
- Sat Apr 21 23:36:51 2012 +0000
- Parent:
- 2:cca0fd8ccb97
- Commit message:
- 120422 hyoji henka no smooth to hard wo reset suru kansuu wo tuika(smoothSet(0:smooth or 1:hard)
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 Fri Dec 02 14:03:00 2011 +0000
+++ b/SevenSegLed.cpp Sat Apr 21 23:36:51 2012 +0000
@@ -61,7 +61,14 @@
}
-
+/**************************************
+* display henka set
+* 0:smooth 1:hard
+* @SS120422
+**************************************/
+void SevenSegLed::smoothSet(uint8_t smooth){
+ D_smooth = smooth;
+}
/**************************************
* 7segment no gray data kosin
--- a/SevenSegLed.h Fri Dec 02 14:03:00 2011 +0000
+++ b/SevenSegLed.h Sat Apr 21 23:36:51 2012 +0000
@@ -1,5 +1,6 @@
/* mbed Seven segment LED (Maximum four digit) Library
* Copyright (c) 2011 suupen
+ * 120422 hyoji no smooth to hard no settei wo kirike suru kansuu wo tuika.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -126,7 +127,11 @@
class SevenSegLed {
public:
-
+ //@SS120422
+ /** 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
* @param commonPole The polarity of the seven segment led common 0:Anode common, 1:Cathode common