Isaac Cruz
/
Practica_3_-_Ejercicio_03
p3e3
main.cpp
- Committer:
- isaacross99
- Date:
- 2019-10-16
- Revision:
- 29:e4fdd3713b48
- Parent:
- 28:868b283c5f77
File content as of revision 29:e4fdd3713b48:
#include "mbed.h" DigitalOut fuente1(PTA2); DigitalOut fuente2(PTC2); DigitalOut fuente3(PTC3); //DigitalIn boton1(PTC6); int main(){ fuente1=0; fuente2=0; fuente3=0; while(1){ fuente1=1; fuente2=0; fuente3=0; wait(0.5); fuente1=0; fuente2=1; fuente3=0; wait(0.5); fuente1=0; fuente2=0; fuente3=1; wait(0.5); } } //Preguntar al profesor sobre qué pin habilitar para la fuente, y si se tiene que habilitar el pin a tierra (pin GND).