完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
新唐的NANO100 BSP 有以下这样的定义 不明白
typedef struct { uint32_t com[LCD_ALPHABET_SEGNUM]; /* LCD COM line (for multiplexing) */ uint32_t bit[LCD_ALPHABET_SEGNUM]; /* LCD SEG bit number */ } CHAR_TypeDef; /**************************************************************************//** * Defines segment COM and BIT fields for numeric display *****************************************************************************/ typedef struct { uint32_t com[LCD_DIGIT_SEGNUM]; uint32_t bit[LCD_DIGIT_SEGNUM]; } NUMBER_TypeDef; /**************************************************************************//** * Defines all types of display for all segments *****************************************************************************/ typedef struct { CHAR_TypeDef Text[LCD_ALPHABET_NUM]; NUMBER_TypeDef Number[LCD_DIGIT_NUM]; } NANO1XX_DISPLAY; /**************************************************************************//** * Defines the COM/SEG for each alphabet and numeric *****************************************************************************/ const NANO1XX_DISPLAY NANO1XXDISPLAY = { .Text = { { /* 1 */ /* A B C D */ .com[0] = 3, .com[1] = 2, .com[2] = 1, .com[3] = 0, .bit[0] = 0, .bit[1] = 0, .bit[2] = 0, .bit[3] = 0, /* E F G H */ .com[4] = 1, .com[5] = 2, .com[6] = 2, .com[7] = 3, .bit[4] = 38, .bit[5] = 38, .bit[6] = 39, .bit[7] = 39, /* J K M N */ .com[8] = 3, .com[9] = 2, .com[10] = 1, .com[11] = 0, .bit[8] = 1, .bit[9] = 1, .bit[10] = 1, .bit[11] = 1, /* P Q */ .com[12] = 0, .com[13] = 1, .bit[12] = 39, .bit[13] = 39 }, { /* 2 */ .com[0] = 3, .com[1] = 2, .com[2] = 1, .com[3] = 0, .bit[0] = 4, .bit[1] = 4, .bit[2] = 4, .bit[3] = 4, .com[4] = 1, .com[5] = 2, .com[6] = 2, .com[7] = 3, .bit[4] = 2, .bit[5] = 2, .bit[6] = 3, .bit[7] = 3, .com[8] = 3, .com[9] = 2, .com[10] = 1, .com[11] = 0, .bit[8] = 5, .bit[9] = 5, .bit[10] = 5, .bit[11] = 5, .com[12] = 0, .com[13] = 1, .bit[12] = 3, .bit[13] = 3 }, ....................... } } |
|
相关推荐
1个回答
|
|
這是c99的語法,要看compiler有沒有支援
|
|
|
|
只有小组成员才能发言,加入小组>>
664浏览 3评论
586浏览 2评论
393浏览 1评论
412浏览 1评论
375浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 04:21 , Processed in 0.492376 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (威廉希尔官方网站 图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号