User Tools

Site Tools

한국어

moacon:clcd_sample_program:index

CLCD sample program

The following program demonstrates how to use the CLCD library.

#include "moacon500.h"
void cmain(void)
{
 clcdI2cInit(0);               //CLCD on slave address 0
 clcdPower(1);                 //Power on the CLCD device
 delay(100);
 clcdCls();                    //Clear the screen
 delay(100);
 int x=123678;                 //Start counting from 123678
 while(1)                      //Run forever
 {
    delay(500);
    clcdPrint (5,1, "%d",x++); //Print count at column 5, row 1
 }
}

go MOACON home

moacon/clcd_sample_program/index.txt · Last modified: 2016/04/14 11:07 (external edit)