ok

Dependencies:   mbed

main.cpp

Committer:
stersky
Date:
2019-02-12
Revision:
0:f81084734d81

File content as of revision 0:f81084734d81:

#include "mbed.h"

DigitalOut myled(LED1);
DigitalIn bouton(p14);

int main() {
    while(1) {
        if(bouton == 1) myled = 1;
        else myled = 0;

    }
}