LCD点阵液晶多级菜单设计

  1. 设计思路:

LCD的显示分为有按键触发的信息区显示和无需按键触发固定栏显示。利用静态链表数据结构,制作成一张数组形式的表,配置好所有的菜单。LCD软件层次图如下所示:
在这里插入图片描述
LCD层次图

  1. 数据结构

LCD显示结构体:

typedef struct 
{
    uint8 aContent[CONTENT_LEN];  /* display content */
    uint8 nLen;         /* content length */
    uint8 columST;      /* the start address in column direction (0--154) */
    uint8 lineST;       /* the start address in line direction (0--152) */
    uint8 size;         /* the size of word (16 or 12) */
    uint8 type;         /* the display type (0: in new screen  other:in old screen) */
} lcd_word_t;

typedef struct 
{
    uint8 aItem[MAX_MENU_ITEMS][MAX_SHOW_LEN + 1];
    uint8 nItemNum;
    uint8 nCurrAddr;
    uint8 nLastAddr;
    uint8 nInvertAddr; /* means in one screen (1 -- MAX_ITEMS_SCRN) */
    uint8 nMoveFlag; /* whether the Item has moved */
    uint8 nSiz
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值