このライブラリは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 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