3.1.3

Dependencies:   mbed

Committer:
olemh88
Date:
Tue Sep 12 11:01:36 2017 +0000
Revision:
0:a31bf735bd27
313

Who changed what in which revision?

UserRevisionLine numberNew contents of line
olemh88 0:a31bf735bd27 1 #include "mbed.h"
olemh88 0:a31bf735bd27 2 Serial pc(USBTX, USBRX);
olemh88 0:a31bf735bd27 3 BusOut teller(p21, p22, p23, p24, p25, p26);
olemh88 0:a31bf735bd27 4
olemh88 0:a31bf735bd27 5 int main()
olemh88 0:a31bf735bd27 6 {
olemh88 0:a31bf735bd27 7 while(1) {
olemh88 0:a31bf735bd27 8 for(int x = 0; x <= 63; x++) {
olemh88 0:a31bf735bd27 9 teller = x;
olemh88 0:a31bf735bd27 10 wait(0.1);
olemh88 0:a31bf735bd27 11 if (x == 63) {
olemh88 0:a31bf735bd27 12 for(int x = 63; x > 0; x--) {
olemh88 0:a31bf735bd27 13 teller = x;
olemh88 0:a31bf735bd27 14 wait(0.1);
olemh88 0:a31bf735bd27 15 }
olemh88 0:a31bf735bd27 16
olemh88 0:a31bf735bd27 17 }
olemh88 0:a31bf735bd27 18 }
olemh88 0:a31bf735bd27 19 }
olemh88 0:a31bf735bd27 20 }