Changes between Version 4 and Version 5 of HardwareUsersGuides/FPGABoard_v1.2/UserIO
- Timestamp:
- May 8, 2014, 9:53:31 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HardwareUsersGuides/FPGABoard_v1.2/UserIO
v4 v5 97 97 #!C 98 98 unsigned char sevenSegmentMap(unsigned char x) 99 { 100 switch(x) 101 { 102 case(0x0) : return 0x007E; 103 case(0x1) : return 0x0030; 104 case(0x2) : return 0x006D; 105 case(0x3) : return 0x0079; 106 case(0x4) : return 0x0033; 107 case(0x5) : return 0x005B; 108 case(0x6) : return 0x005F; 109 case(0x7) : return 0x0070; 110 case(0x8) : return 0x007F; 111 case(0x9) : return 0x007B; 99 switch(x) { 100 case(0x0) : return 0x3F; 101 case(0x1) : return 0x06; 102 case(0x2) : return 0x5B; 103 case(0x3) : return 0x4F; 104 case(0x4) : return 0x66; 105 case(0x5) : return 0x6D; 106 case(0x6) : return 0x7D; 107 case(0x7) : return 0x07; 108 case(0x8) : return 0x7F; 109 case(0x9) : return 0x6F; 112 110 113 case(0xA) : return 0x0077;114 case(0xB) : return 0x007F;115 case(0xC) : return 0x004E;116 case(0xD) : return 0x007E;117 case(0xE) : return 0x004F;118 case(0xF) : return 0x0047;119 default : return 0x0000;120 111 case(0xA) : return 0x77; 112 case(0xB) : return 0x7C; 113 case(0xC) : return 0x39; 114 case(0xD) : return 0x5E; 115 case(0xE) : return 0x79; 116 case(0xF) : return 0x71; 117 default : return 0x00; 118 } 121 119 } 122 120 }}}