7 segment display library for mbed This routine support 2,4 and 8 digit anode-common or cathode-common LED.
Diff: Sseg.h
- Revision:
- 10:1b8dbe52e5a8
- Parent:
- 7:a19431131213
--- a/Sseg.h Mon Jan 12 08:18:59 2015 +0000 +++ b/Sseg.h Sun Jul 05 07:21:33 2015 +0000 @@ -1,6 +1,6 @@ /* SSeg.cpp - mbed library for 2/4/8 digit seven segment LED driver. - Copyright 2013,2014 by morecat_lab + Copyright 2013,2014,2015 by morecat_lab based on Dots library. Copyright 2010 arms22. All right reserved. @@ -41,8 +41,8 @@ private: unsigned long _lastUpdateTime; int _updateInterval; - BusOut _segPins; - BusOut _digPins; + DigitalOut *_segPins[8]; // changed to use array + DigitalOut *_digPins[8]; // changed to use array char _buffer[8]; int _numOfDigs; int _dig; // support 4 or 8