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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? st7529.c

?? 矽創(chuàng)32級LCD灰度控制芯片ST7529的演示程序。
?? C
?? 第 1 頁 / 共 3 頁
字號:
      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
*/
  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;
/*
        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) 
{
  PixelIndex pixels;

  pixels = *p;
  if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) switch (Diff&3) 
  {
  case 0:
    goto WriteTBit0;
  case 1:
    goto WriteTBit1;
  case 2:
    goto WriteTBit2;
  default:
    goto WriteTBit3;
  } 
  else switch (Diff&3) 
  {
  case 0:
    goto WriteBit0;
  case 1:
    goto WriteBit1;
  case 2:
    goto WriteBit2;
  default:
    goto WriteBit3;
  }
/*
        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;
}

#endif


/*
        *********************************************************
        *                                                       *
        *  Draw Bitmap 4 BPP                                    *
        *                                                       *
        *********************************************************
*/

#if (LCD_MAX_LOG_COLORS > 4)

static void  DrawBitLine4BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) 
{
  PixelIndex pixels;

  pixels = *p;
  if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) {
    if ((Diff&1) ==0)
      goto WriteTBit0;
    goto WriteTBit1;
  } else {
    if ((Diff&1) ==0)
      goto WriteBit0;
    goto WriteBit1;
  }
/*
        Write without transparency
*/
WriteBit0:
  SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteBit1:
  SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels>>4)
    SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&0xf)
    SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteTBit0;
}

#endif

/*
        *********************************************************
        *                                                       *
        *              Draw Bitmap 8 BPP                        *
        *                                                       *
        *                                                       *
        *********************************************************
*/

#if (LCD_MAX_LOG_COLORS > 16)
static void  DrawBitLine8BPP(int x, int y, U8 const*p, int xsize, const LCD_PIXELINDEX*pTrans) 
{
  LCD_PIXELINDEX pixel;
  uint8 colour, x0 = x, x1 = x + xsize, i;
  int16 temp;
  
  if ((GUI_Context.DrawMode & LCD_DRAWMODE_TRANS)==0) 
  {
    while (xsize > 0) 
    {
      pixel = *p;
      temp = ScanBuff[y][x/3];
      
      colour = (*(pTrans+pixel))/8;
      switch(x%3)
      {
           case 0:ScanBuff[y][x/3] = (temp & 0x07ff) | (uint16)(colour << 11);break;
           case 1:ScanBuff[y][x/3] = (temp & 0xf83f) | (uint16)(colour << 6);break;
           case 2:ScanBuff[y][x/3] = (temp & 0xffc0) | (colour);break;
           default:break;
      }
      
      xsize--;
      x++;
      p++;
    }
    LCDCOM = ExtIn;
    LcdSetWrite( x0, y, x1, y+1);
    for(i = x0; i < x1; i+=3)
    {
        LCD_WRITE_A0(ScanBuff[y][i/3]);
    }
  }
  else 
  {   
    while (xsize > 0) 
    {
      pixel = *p;
      if (pixel)
      {
         temp = ScanBuff[y][x/3];
         colour = (*(pTrans+pixel))/8;
         switch(x%3)
         {
             case 0:ScanBuff[y][x/3] = (temp & 0x07ff) | (uint16)(colour << 11);break;
             case 1:ScanBuff[y][x/3] = (temp & 0xf83f) | (uint16)(colour << 6);break;
             case 2:ScanBuff[y][x/3] = (temp & 0xffc0) | (colour);break;
             default:break;
         }
       
      }
      xsize--;
      x++;
      p++;
    }
    LCDCOM = ExtIn;
    LcdSetWrite( x0, y, x1, y+1);
    for(i = x0; i < x1; i+=3)
    {
        LCD_WRITE_A0(ScanBuff[y][i/3]);
    }
  }
}

#endif


/*
        *********************************************************
        *                                                       *
        *         Universal draw Bitmap routine                 *
        *                                                       *
        *********************************************************
*/
//上層調(diào)用的畫位圖函數(shù)
void LCD_L0_DrawBitmap   (int x0, int y0,
                       int xsize, int ysize,
                       int BitsPerPixel, 
                       int BytesPerLine,
                       const U8* pData,               //pData表示要畫的位圖的數(shù)據(jù)指針
                       int Diff,                      //diff是有位圖有部分被剪切時,被剪切的到的第幾個象素.
                       const LCD_PIXELINDEX* pTrans)  //pTran是位圖調(diào)色板
{
  uint8 i;
  
  for (i=0; i<ysize; i++) 
  {
    switch (BitsPerPixel) 
    {
    case 1:
      DrawBitLine1BPP(x0, i+y0, pData, Diff, xsize, pTrans);
      break;
    #if (LCD_MAX_LOG_COLORS > 2)
      case 2:
        DrawBitLine2BPP(x0, i+y0, pData, Diff, xsize, pTrans);
        break;
    #endif
    #if (LCD_MAX_LOG_COLORS > 4)
      case 4:
        DrawBitLine4BPP(x0, i+y0, pData, Diff, xsize, pTrans);
        break;
    #endif
    #if (LCD_MAX_LOG_COLORS > 16)
      case 8:
        DrawBitLine8BPP(x0, i+y0, pData, xsize, pTrans);
        break;
    #endif
    }
    pData += BytesPerLine;
  }
}

/***************************************************************************************/
int OrgX, OrgY;
void LCD_L0_SetOrg(int x, int y) 
{
    OrgX = x;
    OrgY = y;
}


/***************************************************************************************/
int  LCD_L0_Init(void)
{
    LCD_INIT_CONTROLLER();
    return 0;
} 


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

*/
#define LCD_REVERSEMODE_SUPPORT 1

#if LCD_REVERSEMODE_SUPPORT

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

#endif


/*
        *********************************************************
        *                                                       *
        *                   LCD_SetPaletteEntry                 *
        *                                                       *
        *********************************************************

*/

void LCD_L0_SetLUTEntry(U8 Pos, LCD_COLOR color) {
  Pos=Pos;
  color=color;
}


/*
        *********************************************************
        *                                                       *
        *       LCD_On                                          *
        *       LCD_Off                                         *
        *                                                       *
        *********************************************************
*/

void LCD_Off          (void) {
#ifdef LCD_OFF
  LCD_OFF();
#endif
}

void LCD_On           (void) {
#ifdef LCD_ON
  LCD_ON();
#endif
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
18成人在线视频| 国产亚洲1区2区3区| 婷婷夜色潮精品综合在线| 欧洲色大大久久| 日韩精品午夜视频| 欧美一级精品大片| 国产一区二区三区电影在线观看 | 亚洲欧洲日本在线| 91国偷自产一区二区使用方法| 亚洲曰韩产成在线| 91精品国产色综合久久不卡电影| 久久成人免费日本黄色| 久久久国产精品不卡| av色综合久久天堂av综合| 尤物av一区二区| 日韩一区二区三区在线观看| 久久电影国产免费久久电影 | 中文字幕中文字幕在线一区| 色婷婷av一区二区三区gif | 一级日本不卡的影视| 91精品国产全国免费观看| 国产成人免费9x9x人网站视频| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲成人激情av| 日韩美一区二区三区| av不卡一区二区三区| 亚洲电影一级片| 国产视频亚洲色图| 欧美在线综合视频| 国产成人综合视频| 亚洲国产成人精品视频| 国产婷婷色一区二区三区| 在线看一区二区| 韩国av一区二区三区在线观看| 一区视频在线播放| 精品国产91久久久久久久妲己| 99久久婷婷国产综合精品电影| 视频在线观看国产精品| 亚洲婷婷在线视频| 久久久国产精品麻豆| 欧美另类z0zxhd电影| 99久久99久久综合| 国产一区二三区好的| 亚洲成人黄色小说| 亚洲毛片av在线| 国产亚洲短视频| 日韩欧美一区二区三区在线| 欧美影视一区在线| 99天天综合性| 国产成人啪午夜精品网站男同| 亚洲成av人片一区二区三区| 国产精品久久福利| 久久久久88色偷偷免费| 日韩精品影音先锋| 宅男在线国产精品| 欧美在线影院一区二区| 91网站在线播放| 成人高清免费观看| 国产一区高清在线| 精品一区二区影视| 蜜臀av在线播放一区二区三区| 亚洲成人自拍一区| 亚洲综合网站在线观看| 中文字幕综合网| 中文字幕一区二区在线观看| 国产色综合一区| 久久久国际精品| 久久网这里都是精品| 欧美tk—视频vk| 日韩一区二区三区在线观看| 91精品国产麻豆| 欧美一区二区三区白人| 欧美高清视频在线高清观看mv色露露十八| 一本色道久久综合亚洲精品按摩| 成av人片一区二区| 99视频在线精品| 97se亚洲国产综合在线| 91欧美激情一区二区三区成人| 白白色 亚洲乱淫| av成人动漫在线观看| 99re在线精品| 色哟哟在线观看一区二区三区| 日本福利一区二区| 欧美在线色视频| 在线成人av影院| 日韩欧美在线123| 精品日韩一区二区三区| 久久一区二区三区四区| 欧美激情一区二区三区全黄| 国产精品国产三级国产专播品爱网 | 最新成人av在线| 日韩伦理电影网| 亚洲国产精品久久久久婷婷884 | 欧美伊人久久大香线蕉综合69| 欧美日韩精品系列| 91精品国产aⅴ一区二区| 日韩精品一区二区三区蜜臀| 精品国产91久久久久久久妲己| 国产嫩草影院久久久久| 一区二区三区欧美亚洲| 视频一区视频二区中文| 国产精品综合av一区二区国产馆| 国产成人精品网址| 欧洲中文字幕精品| 日韩欧美一区二区免费| 国产精品素人视频| 亚洲电影一级黄| 国产精品一区二区三区四区| 99这里都是精品| 91精品国产欧美一区二区成人| 精品成人a区在线观看| 中文字幕中文在线不卡住| 亚洲成av人综合在线观看| 黄页视频在线91| 色中色一区二区| 日韩亚洲电影在线| 国产精品国产三级国产| 日韩av一区二区在线影视| 国产**成人网毛片九色| 欧美精品成人一区二区三区四区| 久久伊99综合婷婷久久伊| 亚洲午夜日本在线观看| 国产在线国偷精品产拍免费yy | 欧美日韩视频在线观看一区二区三区 | 一区二区中文视频| 久久99精品国产| 91福利社在线观看| 欧美激情资源网| 免费一级片91| 欧美亚洲一区二区在线观看| 国产午夜精品一区二区三区视频 | 久久66热偷产精品| 欧美在线免费视屏| 国产欧美日韩麻豆91| 免费一级欧美片在线观看| 色婷婷激情综合| 国产亚洲综合性久久久影院| 日韩在线观看一区二区| 97久久精品人人澡人人爽| 久久网站热最新地址| 免费看黄色91| 欧美日韩视频在线第一区 | 亚洲精品一区二区在线观看| 亚洲成人在线网站| 97se亚洲国产综合自在线观| 久久久精品欧美丰满| 美女诱惑一区二区| 欧美日本韩国一区| 亚洲一区二区三区美女| av不卡在线观看| 欧美韩国日本综合| 国内精品视频一区二区三区八戒| 欧美一区二区人人喊爽| 无码av免费一区二区三区试看| 91麻豆视频网站| 自拍偷拍国产精品| 99精品一区二区| 自拍偷自拍亚洲精品播放| 成人精品国产免费网站| 日本一区二区三区dvd视频在线| 国产一区二区美女| 久久久国际精品| 国产精品综合二区| 国产亚洲精品资源在线26u| 激情综合色丁香一区二区| 日韩精品专区在线影院重磅| 美腿丝袜亚洲色图| 日韩精品中文字幕一区| 精品一区二区综合| 久久精品一区四区| 成人精品视频一区二区三区 | 日韩欧美电影一区| 免费久久精品视频| 26uuu另类欧美亚洲曰本| 狠狠狠色丁香婷婷综合久久五月| 欧美不卡视频一区| 国产盗摄女厕一区二区三区 | 精品国产91亚洲一区二区三区婷婷| 日本视频一区二区| 精品国产凹凸成av人网站| 国产乱码字幕精品高清av| 欧美国产精品专区| 色婷婷精品久久二区二区蜜臀av| 亚洲一区免费在线观看| 正在播放一区二区| 国产一区二区三区精品欧美日韩一区二区三区 | 成人av在线一区二区| 亚洲激情图片qvod| 在线综合视频播放| 国产精品资源在线看| 亚洲欧美日韩国产成人精品影院 | 欧美变态口味重另类| 国产xxx精品视频大全| 日韩美女久久久| 69久久99精品久久久久婷婷| 国产成人自拍网| 亚洲午夜羞羞片| 久久一区二区视频| 91久久精品一区二区| 麻豆成人av在线|