Print to LCD

Dependencies:   DOGS102 mbed-rtos mbed

Fork of MTDOT_BOX_EVB_Blinky by Mac Lobdell

main.cpp

Committer:
maclobdell
Date:
2016-04-04
Revision:
12:d41bdc50f852
Parent:
4:81cea7a352b0
Child:
13:142a8d831f29

File content as of revision 12:d41bdc50f852:

#include "mbed.h"
#include "rtos.h"
#include "NCP5623B.h"

DigitalOut myled(LED1);
I2C led_i2c(I2C_SDA, I2C_SCL);
NCP5623B* led_cont;
    
int main() {
    
    led_cont = new NCP5623B(led_i2c);
    led_cont->setLEDCurrent(16);
            
    while(1) {
    
        led_cont->setPWM(NCP5623B::LED_3, 8);
        wait(0.2);
        led_cont->setPWM(NCP5623B::LED_3, 0);
        wait(0.2);
    }
}