Print to LCD
Dependencies: DOGS102 mbed-rtos mbed
Fork of MTDOT_BOX_EVB_Blinky by
main.cpp
- Committer:
- maclobdell
- Date:
- 2016-04-04
- Revision:
- 13:142a8d831f29
- Parent:
- 12:d41bdc50f852
- Child:
- 14:95709e8d776a
File content as of revision 13:142a8d831f29:
#include "mbed.h" #include "rtos.h" #include "NCP5623B.h" 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); wait(0.2); led_cont->setPWM(NCP5623B::LED_3, 0); wait(0.2); } }