7.1

Dependencies:   mbed

Fork of Oppgave2 by Sølibatgutt

Committer:
andreped
Date:
Tue Sep 05 11:25:10 2017 +0000
Revision:
3:cdd8af1b6f39
Parent:
2:6d50b444c4df
Child:
4:bfa6e8f625e2
Child:
5:da09c341e484
2.1;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andreped 0:fe54cfab4520 1 #include "mbed.h"
andreped 0:fe54cfab4520 2
andreped 0:fe54cfab4520 3 BusOut teller(p21, p22, p23, p24, p25, p26);
andreped 0:fe54cfab4520 4
andreped 1:07b498c93e9a 5 int main()
andreped 1:07b498c93e9a 6 {
andreped 0:fe54cfab4520 7 while(1) {
andreped 0:fe54cfab4520 8 int x = teller;
andreped 1:07b498c93e9a 9 if ( x = 63) {
andreped 3:cdd8af1b6f39 10 x = 0;
andreped 1:07b498c93e9a 11 } else {
andreped 2:6d50b444c4df 12 x >= 63;
andreped 1:07b498c93e9a 13 x = ++;
andreped 2:6d50b444c4df 14 wait(0.25);
andreped 1:07b498c93e9a 15 }
andreped 0:fe54cfab4520 16 }
andreped 0:fe54cfab4520 17 }