Blink LED
Dependencies: NCP5623B mbed-rtos mbed
Fork of mbed_blinky by
Diff: main.cpp
- Revision:
- 13:142a8d831f29
- Parent:
- 12:d41bdc50f852
--- a/main.cpp Mon Apr 04 17:41:12 2016 +0000 +++ b/main.cpp Mon Apr 04 18:21:23 2016 +0000 @@ -5,15 +5,17 @@ DigitalOut myled(LED1); I2C led_i2c(I2C_SDA, I2C_SCL); NCP5623B* led_cont; +Serial debug(USBTX, USBRX); int main() { led_cont = new NCP5623B(led_i2c); led_cont->setLEDCurrent(16); - + debug.baud(115200); + debug.printf("hello world\n"); + while(1) { - - led_cont->setPWM(NCP5623B::LED_3, 8); + led_cont->setPWM(NCP5623B::LED_3, 8); wait(0.2); led_cont->setPWM(NCP5623B::LED_3, 0); wait(0.2);