Dependencies:   mbed mbed-rtos C12832_lcd

main.cpp

Committer:
nukkrith
Date:
2021-06-27
Revision:
0:4336dcc9d005

File content as of revision 0:4336dcc9d005:

#include "mbed.h"
#include "rtos.h"
#include "C12832_lcd.h"

C12832_LCD lcd;
int Number = 0;

void lcd_thread(void const *args){
    while(1){
    lcd.cls();
    lcd.locate(0,0);
    lcd.printf("LCD Display test\n");
    lcd.printf("Running number is: %d \n",Number++);
    Thread::wait(1000);    
    }
}

int main() {
    Thread LCD_ID(lcd_thread);
    while(1){;}
}