![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
7.1
Dependencies: mbed
Fork of Oppgave2 by
main.cpp@2:6d50b444c4df, 2017-09-05 (annotated)
- Committer:
- andreped
- Date:
- Tue Sep 05 11:22:43 2017 +0000
- Revision:
- 2:6d50b444c4df
- Parent:
- 1:07b498c93e9a
- Child:
- 3:cdd8af1b6f39
2.1
Who changed what in which revision?
User | Revision | Line number | New 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 | 1:07b498c93e9a | 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 | } |