Isaac Cruz
/
Ejercicio_POT
Practica 7
main.cpp
- Committer:
- isaacross99
- Date:
- 2019-10-16
- Revision:
- 29:734b61eca6df
- Parent:
- 28:868b283c5f77
- Child:
- 30:f7518060fc89
File content as of revision 29:734b61eca6df:
#include "mbed.h" DigitalOut red(LED1); Serial pc(USBTX,USBRX); DigitalIn boton1(PTC6); DigitalIn boton2(PTA4); int main(){ red=0; while(1){ /*while(boton1 || boton2){ red = 1; pc.printf("\nEstas presionando el boton :o"); } red=0;*/ //////////////////////////////////////////////////////////////////// if(!boton1 || !boton2){ red =1 ; pc.printf("\nEstas presionando el boton :o"); } else{ red=0; } } }