Isabelle Murollo
/
Projeto_CCM_Maquinas_MotorPasso
Centro de Controle de Motores
main.cpp@1:d94be0bcadcc, 2022-03-09 (annotated)
- Committer:
- isabellemm
- Date:
- Wed Mar 09 14:05:43 2022 +0000
- Revision:
- 1:d94be0bcadcc
- Parent:
- 0:fc9c0d1b575d
- Child:
- 2:46bbc8fadd10
v2
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 | 0:fc9c0d1b575d | 5 | int main() { |
isabellemm | 0:fc9c0d1b575d | 6 | while(1) { |
isabellemm | 0:fc9c0d1b575d | 7 | led = 1; //LED on |
isabellemm | 1:d94be0bcadcc | 8 | wait(1); |
isabellemm | 0:fc9c0d1b575d | 9 | led = 0; //LED off |
isabellemm | 1:d94be0bcadcc | 10 | wait(1); |
isabellemm | 0:fc9c0d1b575d | 11 | } |
isabellemm | 0:fc9c0d1b575d | 12 | } |