芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密

飞芯科技提供芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密逆向服务

ESK32-360开发板TFT屏显示功能及扩展PCB抄板

  1. PCB抄板,void LCD_DrawLine(u16 x1, u16 y1, u16 x2, u16 y2, u16 Color)
  2. {
  3.          u16 t;
  4.          s16 xerr=0,yerr=0,delta_x,delta_y,distance;
  5.          u16 incx,incy,uRow,uCol;
  6.          delta_x=x2-x1;
  7.          delta_y=y2-y1;
  8.          uRow=x1;
  9.          uCol=y1;
  10.          if(delta_x>0)incx=1;
  11.          else if(delta_x==0)incx=0;
  12.          else { incx=-1; delta_x=-delta_x; }
  13.         
  14.          if(delta_y>0)incy=1;
  15.          else if(delta_y==0)incy=0;
  16.          else { incy=-1; delta_y=-delta_y; }
  17.         
  18.          if( delta_x>delta_y) distance=delta_x;
  19.          else distance=delta_y;
  20.         
  21.          for(t=0;t<=distance+1;t++)
  22.          {
  23.                    LCD_dotDraw(uRow,uCol,Color);            
  24.                    xerr+=delta_x ;
  25.                    yerr+=delta_y ;
  26.                    if(xerr>distance)
  27.                    {
  28.                             xerr-=distance;
  29.                             uRow+=incx;
  30.                    }
  31.                    if(yerr>distance)
  32.                    {
  33.                             yerr-=distance;
  34.                             uCol+=incy;
  35.                    }
  36.          }
  37. }



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.taihedz.cn
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信