Isabelle Murollo
/
Projeto_CCM_Maquinas_MotorPasso
Centro de Controle de Motores
main.cpp@0:fc9c0d1b575d, 2022-03-09 (annotated)
- Committer:
- isabellemm
- Date:
- Wed Mar 09 14:05:11 2022 +0000
- Revision:
- 0:fc9c0d1b575d
- Child:
- 1:d94be0bcadcc
V1
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 | 0:fc9c0d1b575d | 8 | wait(0.002); |
isabellemm | 0:fc9c0d1b575d | 9 | led = 0; //LED off |
isabellemm | 0:fc9c0d1b575d | 10 | wait(0.002); |
isabellemm | 0:fc9c0d1b575d | 11 | } |
isabellemm | 0:fc9c0d1b575d | 12 | } |