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);