ASURO Library  2.80
lcd_bpi216.c
gehe zur Dokumentation dieser Datei
1 
15 #include "lcd_bpi216.h"
16 
17 // LCD interface commands
18 void LCD_clear(void)
19 {
20  unsigned char buf[1]={254};
21  SerWrite(buf,1);
22  buf[0]=1;
23  SerWrite(buf,1);
24 }
25 
26 
27 void LCD_moveTo(unsigned char line, unsigned char pos)
28 {
29  unsigned char buf[1]={254};
30  SerWrite(buf,1);
31  if(line==1)
32  {
33  buf[0]=128-1+pos;
34  SerWrite(buf,1);
35  }
36  else if(line==2)
37  {
38  buf[0]=192-1+pos;
39  SerWrite(buf,1);
40  }
41  else
42  ;
43 }