嵌入式实验三人机交互接口-键盘操作实验(9)

2020-02-21 02:47

0xff,0xff, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf6[] = {

0xff,0xff, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf7[] = {

0xff,0xff, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf1c[] = {

0xf4,0xf4, 0xf4,0xf4, 0xf4,0xf4, 0xf4,0xf4, 0xf4,0xf4 }; unsigned char buf2c[] = {

0xf6,0xf6, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf3c[] =

{

0xf8,0xf8, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf4c[] = {

0xfa,0xfa, 0xfa,0xfa, 0xfa,0xfa, 0xfa,0xfa, 0x00,0x00 }; unsigned char buf5c[] = {

0xfc,0xfc, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf6c[] = {

0xfe,0xfe, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 }; unsigned char buf7c[] = {

0xff,0xff, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00 };

unsigned char buf1a[] = {

0xff,0xff, 0xff }; unsigned char buf2a[] = {

0xff,0x00, 0x00 }; unsigned char buf3a[] = {

0xff,0x00, 0x00 }; unsigned char buf4a[] = {

0xff,0xff, 0x00 }; unsigned char buf5a[] = {

0xff,0x00, 0x00 };unsigned char buf6a[] = {

0xff,0x00, 0x00 }; unsigned char buf7a[] = {

0xff,0x00, 0x00 }; unsigned char buf9[] = {

0xff,0xff, 0xff };

unsigned char buf10[] = {

0xff,0xff, 0xff };

unsigned char buf11[] = {

0xff,0xff, 0xff }; //SysTick interrupt happens every XX ms void SysTick_Handler(void){ Event=1; } /*中断服务函数ISR*/ void GPIO_PORT_D_ISR(void) { unsigned char ucKey; unsigned long ulStatus; ulStatus = GPIOPinIntStatus(GPIO_PORTD_BASE, true); GPIOPinIntClear(GPIO_PORTD_BASE, ulStatus); if(ulStatus & GPIO_PIN_7) { ucKey = GPIOPinRead(GPIO_PORTC_BASE, GPIO_PIN_4); ucKey = ucKey>>1; ucValue = ucValue + ucKey; ucValue = ucValue<<1; i++; if(i==4) { i=0; Event_Key=1; oledkey[1]='\\0'; if((ucValue>>4)<10) oledkey[0] = (ucValue>>4) + 48; else oledkey[0] = (ucValue>>4) - 10 + 'A'; } } }

void Reset_Counter_Speed(int x) {

SysTickIntDisable(); SysTickDisable(); SysTickPeriodSet(SysCtlClockGet() / x*100);//x为输入的参数,控制计数频率,值越大频率越快 SysTickEnable(); SysTickIntEnable(); RIT128x96x4StringDraw(\ }

void Draw_Char_F(int x){ RIT128x96x4StringDraw(\ RIT128x96x4ImageDraw(buf1, x, 30, 20, 1);//big F RIT128x96x4ImageDraw(buf2, x, 32, 20, 1); RIT128x96x4ImageDraw(buf3, x, 34, 20, 1); RIT128x96x4ImageDraw(buf4, x, 36, 20, 1); RIT128x96x4ImageDraw(buf5, x, 38, 20, 1); RIT128x96x4ImageDraw(buf6, x, 40, 20, 1); }

void Draw_f(){ //画花盆 RIT128x96x4ImageDraw(bufp1, 0, 74,104, 1); RIT128x96x4ImageDraw(bufp2, 0, 75,104, 1); RIT128x96x4ImageDraw(bufp3, 0, 76,104, 1); RIT128x96x4ImageDraw(bufp4, 0, 77,104, 1); RIT128x96x4ImageDraw(bufp5, 0, 78,104, 1); RIT128x96x4ImageDraw(bufp6, 0, 79, 104,1); RIT128x96x4ImageDraw(bufp7, 0, 80,104, 1); RIT128x96x4ImageDraw(bufp8, 0, 81,104, 1); RIT128x96x4ImageDraw(bufp9, 0, 82,104, 1); RIT128x96x4ImageDraw(bufp10, 0,83,104, 1); RIT128x96x4ImageDraw(bufp11, 0,84,104, 1); RIT128x96x4ImageDraw(bufp12, 0,85,104, 1); }

void Draw_o(){//画花枝 for(z=56;z<=74;z++){ RIT128x96x4ImageDraw(buf020, 0,z,104, 1); } } void Draw_w(){ RIT128x96x4ImageDraw(bufs1, 52,65,24, 1); RIT128x96x4ImageDraw(bufs1, 52,66,24, 1); RIT128x96x4ImageDraw(bufs1, 52,67,24, 1); RIT128x96x4ImageDraw(bufs1, 52,68,24, 1); } void Draw_e(){ RIT128x96x4ImageDraw(bufl1, 18,60,32, 1);


嵌入式实验三人机交互接口-键盘操作实验(9).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:质量样板引路施工方案交底 - 图文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: