Print to LCD
Dependencies: DOGS102 mbed-rtos mbed
Fork of MTDOT_BOX_EVB_Blinky by
Diff: main.cpp
- Revision:
- 13:142a8d831f29
- Parent:
- 12:d41bdc50f852
- Child:
- 14:95709e8d776a
--- 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);