Oppgave 2.1

Dependencies:   mbed

Committer:
andreped
Date:
Tue Sep 05 11:21:11 2017 +0000
Revision:
1:07b498c93e9a
Parent:
0:fe54cfab4520
Child:
2:6d50b444c4df
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 0:fe54cfab4520 9 x = ++;
andreped 1:07b498c93e9a 10 x <= 63;
andreped 0:fe54cfab4520 11 wait(0.25);
andreped 1:07b498c93e9a 12 if ( x = 63) {
andreped 1:07b498c93e9a 13 x = 0
andreped 1:07b498c93e9a 14 } else {
andreped 1:07b498c93e9a 15 x = ++;
andreped 1:07b498c93e9a 16 }
andreped 0:fe54cfab4520 17 }
andreped 0:fe54cfab4520 18 }