亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lcd07x1.c

?? 一個非常難得的ucos嵌入式液晶驅動源程序
?? C
?? 第 1 頁 / 共 4 頁
字號:
    }
/* ... */
  } else {
    int x;
    for (x=X0; x <= X1; x++) {
      LCD_L0_DrawVLine(x,Y0, Y1);
    }
  }
  #undef X0
  #undef Y0
  #undef X1
  #undef Y1
}

/*
        *********************************************************
        *                                                       *
        *          LCD_FillRect, unoptimized                    *
        *                                                       *
        *********************************************************
*/

#else

void LCD_L0_FillRect(int x0, int y0, int x1, int y1) {
  for (; y0 <= y1; y0++) {
    LCD_L0_DrawHLine(x0,y0, x1);
  }
}

#endif


/*
        *********************************************************
        *                                                       *
        *    Support for dynamic inversion of entire LCD        *
        *                                                       *
        *********************************************************

*/

#if LCD_REVERSEMODE_SUPPORT

void LCD_SetNormalDispMode    (void) {
}
void LCD_SetReverseDispMode   (void) {
}

#endif


/*
        *********************************************************
        *                                                       *
        *          Draw Bitmap 1 BPP                            *
        *                                                       *
        *********************************************************
*/

static void  DrawBitLine1BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  PIXELCOLOR pixels;
  PIXELCOLOR Index0 = *(pTrans+0);
  PIXELCOLOR Index1 = *(pTrans+1);
/*
   Jump to right entry point
*/
  pixels = *p;
  switch (LCD_DrawMode & (LCD_DRAWMODE_TRANS|LCD_DRAWMODE_XOR)) {
  case 0:
    #if defined (SETNEXTPIXEL)
      SetPosXY(x,y);
    #endif
    switch (Diff&7) {
    case 0:   
      goto WriteBit0;
    case 1:   
      goto WriteBit1;
    case 2:
      goto WriteBit2;
    case 3:
      goto WriteBit3;
    case 4:
      goto WriteBit4;
    case 5:   
      goto WriteBit5;
    case 6:   
      goto WriteBit6;
    case 7:   
      goto WriteBit7;
    }
    break;
  case LCD_DRAWMODE_TRANS:
    switch (Diff&7) {
    case 0:
      goto WriteTBit0;
    case 1:
      goto WriteTBit1;
    case 2:
      goto WriteTBit2;
    case 3:
      goto WriteTBit3;
    case 4:
      goto WriteTBit4;
    case 5:   
      goto WriteTBit5;
    case 6:   
      goto WriteTBit6;
    case 7:   
      goto WriteTBit7;
    }
    break;
  case LCD_DRAWMODE_XOR:
    switch (Diff&7) {
    case 0:   
      goto WriteXBit0;
    case 1:   
      goto WriteXBit1;
    case 2:
      goto WriteXBit2;
    case 3:
      goto WriteXBit3;
    case 4:
      goto WriteXBit4;
    case 5:   
      goto WriteXBit5;
    case 6:   
      goto WriteXBit6;
    case 7:   
      goto WriteXBit7;
    }
  }
/*
        Write with transparency
*/
  WriteTBit0:
    if (pixels&(1<<7)) SETPIXEL(x+0, y, Index1);
    if (!--xsize)
      return;
  WriteTBit1:
    if (pixels&(1<<6)) SETPIXEL(x+1, y, Index1);
    if (!--xsize)
      return;
  WriteTBit2:
    if (pixels&(1<<5)) SETPIXEL(x+2, y, Index1);
    if (!--xsize)
      return;
  WriteTBit3:
    if (pixels&(1<<4)) SETPIXEL(x+3, y, Index1);
    if (!--xsize)
      return;
  WriteTBit4:
    if (pixels&(1<<3)) SETPIXEL(x+4, y, Index1);
    if (!--xsize)
      return;
  WriteTBit5:
    if (pixels&(1<<2)) SETPIXEL(x+5, y, Index1);
    if (!--xsize)
      return;
  WriteTBit6:
    if (pixels&(1<<1)) SETPIXEL(x+6, y, Index1);
    if (!--xsize)
      return;
  WriteTBit7:
    if (pixels&(1<<0)) SETPIXEL(x+7, y, Index1);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteTBit0;

/*
        Write without transparency
*/
#if defined (SETNEXTPIXEL)   /* Optimization ! */
  WriteBit0:
    SetNextPixel(x+0, y, (pixels&(1<<7)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit1:
    SetNextPixel(x+1, y, (pixels&(1<<6)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit2:
    SetNextPixel(x+2, y, (pixels&(1<<5)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit3:
    SetNextPixel(x+3, y, (pixels&(1<<4)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit4:
    SetNextPixel(x+4, y, (pixels&(1<<3)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit5:
    SetNextPixel(x+5, y, (pixels&(1<<2)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit6:
    SetNextPixel(x+6, y, (pixels&(1<<1)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit7:
    SetNextPixel(x+7, y, (pixels&(1<<0)) ? Index1 : Index0);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteBit0;
#else
  WriteBit0:
    SETPIXEL(x+0, y, (pixels&(1<<7)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit1:
    SETPIXEL(x+1, y, (pixels&(1<<6)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit2:
    SETPIXEL(x+2, y, (pixels&(1<<5)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit3:
    SETPIXEL(x+3, y, (pixels&(1<<4)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit4:
    SETPIXEL(x+4, y, (pixels&(1<<3)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit5:
    SETPIXEL(x+5, y, (pixels&(1<<2)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit6:
    SETPIXEL(x+6, y, (pixels&(1<<1)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit7:
    SETPIXEL(x+7, y, (pixels&(1<<0)) ? Index1 : Index0);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteBit0;
#endif
/*
        Write XOR mode
*/
  WriteXBit0:
    if (pixels&(1<<7))
      XORPIXEL(x+0, y);
    if (!--xsize)
      return;
  WriteXBit1:
    if (pixels&(1<<6))
      XORPIXEL(x+1, y);
    if (!--xsize)
      return;
  WriteXBit2:
    if (pixels&(1<<5))
      XORPIXEL(x+2, y);
    if (!--xsize)
      return;
  WriteXBit3:
    if (pixels&(1<<4))
      XORPIXEL(x+3, y);
    if (!--xsize)
      return;
  WriteXBit4:
    if (pixels&(1<<3))
      XORPIXEL(x+4, y);
    if (!--xsize)
      return;
  WriteXBit5:
    if (pixels&(1<<2))
      XORPIXEL(x+5, y);
    if (!--xsize)
      return;
  WriteXBit6:
    if (pixels&(1<<1))
      XORPIXEL(x+6, y);
    if (!--xsize)
      return;
  WriteXBit7:
    if (pixels&(1<<0))
      XORPIXEL(x+7, y);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteXBit0;
}


/*
        *********************************************************
        *                                                       *
        *  Draw Bitmap 2 BPP                                    *
        *                                                       *
        *********************************************************
*/

#if (LCD_MAX_LOG_COLORS > 2)

static void  DrawBitLine2BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  PIXELCOLOR pixels;
/*
   Jump to right entry point
*/
  pixels = *p;
  if (pTrans) { 
    /* 
      with palette 
    */
    switch (LCD_DrawMode & (LCD_DRAWMODE_TRANS|LCD_DRAWMODE_XOR)) {
    case 0:
      switch (Diff&3) {
      case 0:
        goto WriteBit0;
      case 1:
        goto WriteBit1;
      case 2:
        goto WriteBit2;
      default:
        goto WriteBit3;
      }
    case LCD_DRAWMODE_TRANS:
      switch (Diff&3) {
      case 0:
        goto WriteTBit0;
      case 1:
        goto WriteTBit1;
      case 2:
        goto WriteTBit2;
      default:
        goto WriteTBit3;
      }
    case LCD_DRAWMODE_XOR:
      switch (Diff&3) {
      case 0:
        goto WriteXBit0;
      case 1:
        goto WriteXBit1;
      case 2:
        goto WriteXBit2;
      default:
        goto WriteXBit3;
      }
    case LCD_DRAWMODE_TRANS|LCD_DRAWMODE_XOR:
      switch (Diff&3) {
      case 0:
        goto WriteTXBit0;
      case 1:
        goto WriteTXBit1;
      case 2:
        goto WriteTXBit2;
      default:
        goto WriteTXBit3;
      }
    }
  /*
          Write without transparency
  */
  WriteBit0:
    SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
    if (!--xsize)
      return;
  WriteBit1:
    SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
    if (!--xsize)
      return;
  WriteBit2:
    SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
    if (!--xsize)
      return;
  WriteBit3:
    SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
    if (!--xsize)
      return;
    pixels = *(++p);
    x+=4;
    goto WriteBit0;
  /*
          Write with transparency
  */
  WriteTBit0:
    if (pixels&(3<<6))
      SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
    if (!--xsize)
      return;
  WriteTBit1:
    if (pixels&(3<<4))
      SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
    if (!--xsize)
      return;
  WriteTBit2:
    if (pixels&(3<<2))
      SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
    if (!--xsize)
      return;
  WriteTBit3:
    if (pixels&(3<<0))
      SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
    if (!--xsize)
      return;
    pixels = *(++p);
    x+=4;
    goto WriteTBit0;
  /*
          Write without transparency, xor
  */
  WriteXBit0:
    XORPIXEL_DATA(x+0, y, *(pTrans+(pixels>>6)));
    if (!--xsize)
      return;
  WriteXBit1:
    XORPIXEL_DATA(x+1, y, *(pTrans+(3&(pixels>>4))));
    if (!--xsize)
      return;
  WriteXBit2:
    XORPIXEL_DATA(x+2, y, *(pTrans+(3&(pixels>>2))));
    if (!--xsize)
      return;
  WriteXBit3:
    XORPIXEL_DATA(x+3, y, *(pTrans+(3&(pixels))));
    if (!--xsize)
      return;
    pixels = *(++p);
    x+=4;
    goto WriteXBit0;
  /*
          Write with transparency, xor
  */
  WriteTXBit0:
    if (pixels&(3<<6))
      XORPIXEL_DATA(x+0, y, *(pTrans+(pixels>>6)));
    if (!--xsize)
      return;
  WriteTXBit1:
    if (pixels&(3<<4))
      XORPIXEL_DATA(x+1, y, *(pTrans+(3&(pixels>>4))));
    if (!--xsize)
      return;
  WriteTXBit2:
    if (pixels&(3<<2))
      XORPIXEL_DATA(x+2, y, *(pTrans+(3&(pixels>>2))));
    if (!--xsize)
      return;
  WriteTXBit3:
    if (pixels&(3<<0))
      XORPIXEL_DATA(x+3, y, *(pTrans+(3&(pixels))));
    if (!--xsize)
      return;
    pixels = *(++p);
    x+=4;
    goto WriteTXBit0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美精品一区二区三区四区| eeuss国产一区二区三区| 欧美精品在线视频| 日韩电影一区二区三区| 3d成人动漫网站| 久久国产精品色| 久久色在线观看| heyzo一本久久综合| 一区二区三区成人| 91精品国产入口| 国产在线看一区| 国产精品护士白丝一区av| 91国产福利在线| 久久国产精品免费| 国产精品久久久久久久久快鸭 | 一个色妞综合视频在线观看| 欧美性色黄大片| 裸体一区二区三区| 中文字幕巨乱亚洲| 在线视频国产一区| 免费成人你懂的| 亚洲欧洲日产国码二区| 欧美精三区欧美精三区 | 国产一区二区三区不卡在线观看 | 欧洲一区二区三区在线| 久久99精品久久久久久动态图| 国产人妖乱国产精品人妖| 在线视频国产一区| 国产麻豆精品一区二区| 一区二区三区四区乱视频| 91精品视频网| 99国产精品一区| 国模大尺度一区二区三区| 日韩理论电影院| 日韩精品一区二区三区在线观看| a在线欧美一区| 美国三级日本三级久久99| 亚洲欧美国产高清| 久久久久久久久久久久电影| 欧美手机在线视频| 成人免费高清在线观看| 蜜臀精品久久久久久蜜臀| 亚洲欧美偷拍三级| 久久日韩精品一区二区五区| 欧美视频一二三区| 成人黄色免费短视频| 六月丁香婷婷久久| 日韩国产精品大片| 亚洲精品免费在线观看| 久久精品无码一区二区三区| 51久久夜色精品国产麻豆| 一本大道久久a久久综合婷婷 | 亚洲国产精品自拍| 中文字幕巨乱亚洲| 久久亚洲影视婷婷| 欧美一区二区三区四区视频| 色婷婷激情一区二区三区| 国产成人av资源| 极品少妇一区二区| 美女免费视频一区二区| 天堂av在线一区| 一区二区三区在线播| 亚洲视频你懂的| 国产精品理伦片| 中文字幕第一区综合| 2023国产精品| 久久这里都是精品| 精品日本一线二线三线不卡| 69堂成人精品免费视频| 欧美日韩一级片在线观看| 成人动漫在线一区| 国产一区中文字幕| 精品综合免费视频观看| 另类小说综合欧美亚洲| 另类小说综合欧美亚洲| 极品美女销魂一区二区三区| 青娱乐精品视频| 蜜臀91精品一区二区三区 | 国产不卡视频在线播放| 国产一区二区在线免费观看| 国产精品自在在线| 国产一区二区三区在线观看精品| 精品制服美女丁香| 九九国产精品视频| 国产精品亚洲一区二区三区妖精| 国产自产2019最新不卡| 国产乱码精品一品二品| 成人在线一区二区三区| 91免费小视频| 欧美日韩视频在线观看一区二区三区| 欧美性受xxxx| 日韩精品一区二区在线观看| 国产日韩视频一区二区三区| 久久久久久久久久看片| 亚洲欧洲精品一区二区三区不卡| 亚洲男人的天堂av| 亚洲成a天堂v人片| 九九**精品视频免费播放| 国产成人av福利| 色综合久久88色综合天天6| 欧美日韩www| 精品美女一区二区| 日韩一区在线播放| 视频一区二区中文字幕| 狠狠色狠狠色合久久伊人| 粉嫩绯色av一区二区在线观看| 一本色道久久综合狠狠躁的推荐| 欧美精品一卡二卡| 国产亚洲精品7777| 亚洲一级不卡视频| 九九精品一区二区| 色综合久久六月婷婷中文字幕| 欧美日韩mp4| 国产欧美一区二区精品婷婷| 一区二区三区在线播放| 狠狠色丁香婷综合久久| 欧洲中文字幕精品| 久久亚洲精华国产精华液| 亚洲精品欧美综合四区| 韩国视频一区二区| 色网站国产精品| 久久久影院官网| 亚洲福利一区二区| 岛国av在线一区| 欧美精品日韩精品| 中文字幕一区在线| 久久精品国产第一区二区三区| 91最新地址在线播放| 欧美刺激脚交jootjob| 亚洲另类春色国产| 国产一区二区在线看| 欧美色网站导航| 国产女同互慰高潮91漫画| 日本va欧美va欧美va精品| 色天使色偷偷av一区二区| 国产亚洲欧洲一区高清在线观看| 午夜伊人狠狠久久| 一本色道久久综合亚洲91| 精品福利在线导航| 日本成人在线视频网站| 色综合久久66| 国产精品国产三级国产普通话蜜臀| 免费成人av资源网| 在线不卡中文字幕| 亚洲精品免费看| 99国产精品国产精品毛片| 国产婷婷色一区二区三区| 蜜桃一区二区三区在线观看| 欧美精三区欧美精三区| 亚洲国产欧美另类丝袜| 91福利视频久久久久| 亚洲精品中文在线影院| voyeur盗摄精品| 国产精品久久久久久亚洲毛片| 国产精品一区二区三区乱码 | 久久久久久日产精品| 久久国产剧场电影| 精品国产一区二区在线观看| 日韩精品91亚洲二区在线观看 | 欧美一区二区精品久久911| 亚洲最大成人综合| 在线精品国精品国产尤物884a| 成人免费在线观看入口| www.日韩精品| 中文字幕一区二区三| 成人黄色av电影| 国产精品久久久爽爽爽麻豆色哟哟| 大白屁股一区二区视频| 中文字幕av一区二区三区免费看| 国产成人精品亚洲777人妖| 国产亚洲婷婷免费| 成a人片亚洲日本久久| 国产精品电影一区二区三区| 99久久精品费精品国产一区二区 | 亚洲欧美偷拍三级| 91国偷自产一区二区开放时间| 亚洲最大色网站| 91精品婷婷国产综合久久性色| 奇米精品一区二区三区四区 | 国产成人精品影视| 椎名由奈av一区二区三区| 色哟哟一区二区在线观看| 亚洲一区在线观看免费| 欧美人动与zoxxxx乱| 麻豆精品新av中文字幕| 久久久久久一二三区| 91香蕉视频在线| 午夜av一区二区三区| 精品剧情在线观看| 成人性生交大片免费看中文网站| 国产精品三级久久久久三级| 91福利视频在线| 麻豆国产精品官网| 国产精品久久久久久久第一福利| 色哦色哦哦色天天综合| 麻豆中文一区二区| 国产精品人妖ts系列视频| 欧美在线观看18| 狠狠色伊人亚洲综合成人| 亚洲欧美电影院|