gfgf

Dependencies:   SevenSegLed mbed

Committer:
HisyamSulaiman
Date:
Thu May 17 06:59:34 2018 +0000
Revision:
0:b957706fdaee
gfhg

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HisyamSulaiman 0:b957706fdaee 1 #include "mbed.h"
HisyamSulaiman 0:b957706fdaee 2
HisyamSulaiman 0:b957706fdaee 3 BusOut segment(D7,D8,D9,D10,D11,D12,D13);
HisyamSulaiman 0:b957706fdaee 4
HisyamSulaiman 0:b957706fdaee 5 int main() {
HisyamSulaiman 0:b957706fdaee 6 while(1) {
HisyamSulaiman 0:b957706fdaee 7 segment = 1;
HisyamSulaiman 0:b957706fdaee 8 wait (0.2);
HisyamSulaiman 0:b957706fdaee 9 segment = 3;
HisyamSulaiman 0:b957706fdaee 10 wait (0.2);
HisyamSulaiman 0:b957706fdaee 11 segment = 7;
HisyamSulaiman 0:b957706fdaee 12 wait (0.2);
HisyamSulaiman 0:b957706fdaee 13 segment = 15;
HisyamSulaiman 0:b957706fdaee 14 wait (0.2);
HisyamSulaiman 0:b957706fdaee 15 segment = 31;
HisyamSulaiman 0:b957706fdaee 16 wait (0.2);
HisyamSulaiman 0:b957706fdaee 17 segment = 63;
HisyamSulaiman 0:b957706fdaee 18 wait (0.2);
HisyamSulaiman 0:b957706fdaee 19 segment = 127;
HisyamSulaiman 0:b957706fdaee 20 wait (0.2);
HisyamSulaiman 0:b957706fdaee 21
HisyamSulaiman 0:b957706fdaee 22 }
HisyamSulaiman 0:b957706fdaee 23 }