Oppgave 2.1
Dependencies: mbed
main.cpp@0:fe54cfab4520, 2017-09-05 (annotated)
- Committer:
- andreped
- Date:
- Tue Sep 05 11:16:50 2017 +0000
- Revision:
- 0:fe54cfab4520
- Child:
- 1:07b498c93e9a
Oppgave 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 | 0:fe54cfab4520 | 5 | int main() { |
andreped | 0:fe54cfab4520 | 6 | while(1) { |
andreped | 0:fe54cfab4520 | 7 | int x = teller; |
andreped | 0:fe54cfab4520 | 8 | x = ++; |
andreped | 0:fe54cfab4520 | 9 | wait(0.25); |
andreped | 0:fe54cfab4520 | 10 | |
andreped | 0:fe54cfab4520 | 11 | } |
andreped | 0:fe54cfab4520 | 12 | } |