p3e1

Dependencies:   mbed

main.cpp

Committer:
isaacross99
Date:
2019-10-15
Revision:
29:8d088ff342d0
Parent:
28:868b283c5f77

File content as of revision 29:8d088ff342d0:

#include "mbed.h"
DigitalIn boton1(PTC6);
DigitalOut led(PTB22);
int main(){
    led=0;
    while(1){
        if(boton1){
            led=1;
        }
        else{
            led=0;
        }
    }
}