User Tools

Site Tools

한국어

moacon:clcdblit:index

clcdBlit

void clcdBlit(u8 onOff)

onOff: 0=Off, 1=On

Turns the CLCD module's backlight on(onOff=1) or off(onOff=0).

#include "moacon500.h"
void cmain(void)
{
 clcdI2cInit(0);  //CLCD on slave address 0
 clcdPower(1);    //Power on the CLCD device
 delay(100);
 clcdBlit(1);     //Backlight on
 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/clcdblit/index.txt · Last modified: 2016/04/14 11:07 (external edit)