Marvin Villamizar
/
Discrete_SevenSegment_A_K
An awesome library for the 7 segment displays.
Diff: seven.cpp
- Revision:
- 1:4aefe4ad20a6
- Parent:
- 0:916a5376859c
--- a/seven.cpp Thu Feb 11 18:16:47 2016 +0000 +++ b/seven.cpp Sat Feb 13 17:06:18 2016 +0000 @@ -1,7 +1,8 @@ #include "seven.h" #include "mbed.h" -int _decoK[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x67}; -int _decoA[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x98}; + + int _decoK[20]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x67,0x77,0xfc,0x39,0x5e,0x79,0x71,0x74,0x5c,0x38,0x77}; + int _decoA[20]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x98,0x88,0x03,0xc6,0xa1,0x86,0x8E,0x8b,0xa3,0xc7,0x88}; void seven::conf(PinName pin1,PinName pin2,PinName pin3,PinName pin4,PinName pin5,PinName pin6,PinName pin7) {