BTS SNEC 1, SELENA CLEMENCE / Mbed 2 deprecated 2-GPIO2

Dependencies:   mbed

main.cpp

Committer:
selena13
Date:
2020-09-08
Revision:
28:1a9ba65b41a4
Parent:
27:b80950a0e3e0
Child:
29:2146e1bb7b4a

File content as of revision 28:1a9ba65b41a4:

#include "mbed.h"

 DigitalOut led_bleue (LED3);
 DigitalIn BP2(PTC6);

int main() {
    while(1) {
        if (BP2==1)
        {
            led_bleue = 0;
            }
        else
            {
                led_bleue=1;
                }
    }
}