液晶显示在嵌入式系统中的应用
next=new node?
new node-> cs next =?*head??
(new node->cs next)->cs previous
=new node;
}?
else
{
/* The list is empty? setup the head and
the new node. */
?*head? = new node?
new node -> cs previous = new node?
new node -> cs next = new node?
}
}
在建立了上述结构后,便可以得出行队列和页队列的组成方法:
lcdLine lcdLine?30??
lcdPage lcdPage?10?; //初始化列
lcdLine?0?..lcdseg?0?=0x80?
lcdLine?0?..lcdseg?1?=0x80?
lcdLine?0?..lcdseg?2?=0x80?
lcdLine?0?..lcdseg?3?=0xBC?
lcdLine?0?..lcdseg?4?=0x80?
lcdLine?0?..lcdseg?5?=0x97?
lcdLine?0?..lcdseg?6?=0x80?
lcdLine?0?..lcdseg?7?=0x98?
lcdLine?0?..lcdseg?8?=0x80?
lcdLine?0?..lcdseg?9?=0x99?
lcdLine?0?..lcdseg?10?=0x00?
lcdLine?0?..lcdseg?11?=0x00?
lcdLine?0?..lcdseg?12?=0x00?
lcdLine?0?..lcdseg?13?=0x00?
lcdLine?0?..lcdseg?14?=0x00?
lcdLine?0?..lcdseg?15?=0x00?
lcdLine?0?..start =1? //第二行起
lcdLine?0?..showflag =1? //汉字
lcdLine?0?.lineId =1001; //行标识
?firstlcdLine 1?=NULL?
CSC Place On List ?&firstlcdLine 1? &lcdLine?0???
《液晶显示在嵌入式系统中的应用(第3页)》