Task 5.2.3

main.cpp

Committer:
noutram
Date:
2017-07-13
Revision:
1:46c40448e55b
Parent:
0:437c844cec26

File content as of revision 1:46c40448e55b:

#include "mbed.h"

PwmOut pwmRed(D7);

int T = 10;
int Tmark = 1;

int main() {
    
    pwmRed.period_us(T);
    pwmRed.pulsewidth_us(Tmark);
    
    while(1) {
        sleep();
    }
}