10 years, 11 months ago.

PwmOut works on NXP board but not on FRDM-KL25 board

This code runs on an NXP board, but will not run on a Freescale development board.

See discussion: https://mbed.org/questions/903/PwmOUT-not-working/

  1. include "mbed.h"
  2. include <PwmOut.h>

PwmOut led(LED1);

int main() {

led.period(1); led.pulsewidth_ms(500);

while(1) {}

}

Be the first to answer this question.