Isabelle Murollo
/
Projeto_CCM_Maquinas_MotorPasso
Centro de Controle de Motores
main.cpp@2:46bbc8fadd10, 2022-03-09 (annotated)
- Committer:
- isabellemm
- Date:
- Wed Mar 09 14:16:44 2022 +0000
- Revision:
- 2:46bbc8fadd10
- Parent:
- 1:d94be0bcadcc
- Child:
- 3:2b261e3c05db
v3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
isabellemm | 0:fc9c0d1b575d | 1 | #include "mbed.h" |
isabellemm | 0:fc9c0d1b575d | 2 | |
isabellemm | 0:fc9c0d1b575d | 3 | DigitalOut led(D13); |
isabellemm | 0:fc9c0d1b575d | 4 | |
isabellemm | 2:46bbc8fadd10 | 5 | void main(void) { |
isabellemm | 0:fc9c0d1b575d | 6 | while(1) { |
isabellemm | 0:fc9c0d1b575d | 7 | led = 1; //LED on |
isabellemm | 2:46bbc8fadd10 | 8 | wait(0.5); |
isabellemm | 0:fc9c0d1b575d | 9 | led = 0; //LED off |
isabellemm | 2:46bbc8fadd10 | 10 | wait(0.5); |
isabellemm | 0:fc9c0d1b575d | 11 | } |
isabellemm | 0:fc9c0d1b575d | 12 | } |