07.12.19

Dependencies:   mbed

1_led.cpp

Committer:
riad
Date:
2019-12-07
Revision:
0:2f2918e6b649

File content as of revision 0:2f2918e6b649:

#include "mbed.h"

DigitalOut myled(D6);
DigitalIn Taster(A3);

int main() {
    while(true) {
        
        if(Taster == true)
        {
            myled = 1;
            }
            else {myled=0;}
    }
}