3.1.3

Dependencies:   mbed

main.cpp

Committer:
olemh88
Date:
2017-09-12
Revision:
0:a31bf735bd27

File content as of revision 0:a31bf735bd27:

#include "mbed.h"
Serial pc(USBTX, USBRX);
BusOut teller(p21, p22, p23, p24, p25, p26);

int main()
{
    while(1) {
        for(int x = 0; x <= 63; x++) {
            teller = x;
            wait(0.1);
            if (x == 63) {
                for(int x = 63; x > 0; x--) {
                    teller = x;
                    wait(0.1);
                }

            }
        }
    }
}