Aufgabe 1. BusOut Programm

Dependencies:   mbed

main.cpp

Committer:
riad
Date:
2020-01-12
Revision:
1:15d8fa68d1ab
Parent:
0:c8ca3cbede43
Child:
2:ae17974ea4a6

File content as of revision 1:15d8fa68d1ab:

#include "mbed.h"

BusOut lb(LED1,LED2,LED3,LED4);
DigitalIn joy(BUTTON1);


void lb1 ()
{
    lb = 1;
    wait_ms(100);
    
    for(int i = 0; i<=7; i++)
        {
        lb = lb << 1;
        lb = lb | 1;
        wait_ms(100);
        }
}