久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 4579|回復: 3
收起左側

國外diyer做的3D光立方焊接圖+C程序代碼+上位機軟件

[復制鏈接]
ID:284135 發表于 2018-2-15 04:20 | 顯示全部樓層 |閱讀模式
外國朋友做的,資料全部都是英文的.
包含焊接圖
C程序代碼
上位機軟件
0.png

全部資料51hei下載地址:
3D光立方.zip (5.85 MB, 下載次數: 38)



Step 1: welding first welding control panel above a few components:
Positive:
Reserved in our suite does not contain the components of the interface (2 red button and row needles)
On the back:
Step 2: the welding LED socket
Mother put 40 p round water cutting pliers or diagonal cutting pliers cut into single needle:
Then water cutting pliers or diagonal cutting pliers cut the needle seat next to the plastic, cut out the water cutting pliers is better, of course not can also be cut and is less beautiful:
After LED carrier was packed can welding:
Step 3: welding
All positive elements after welding can be welded on the back of the chip carrier, good welding after mount chip, chip time pay attention to the direction of the chip, not to the:
Step 4: welding
At this point light cube panel welding.Next structures, leds, the panel above the distance of the light and the light is 1 CM * 1 CM, the distance is small, advice LED don't plug directly into the control panel, Suggestions on the universal board, between 1.5 CM to 2 CM distance control is more appropriate.
Build a cardboard on top of the first step to find one to draw you the distance to the lamp (if there is a small bench drill can use wood, acrylic, etc instead of cardboard is better, if there is no small bench drill, cardboard must find more thick more hard), if it is built on the control panel directly, the distance is 1 cm, can draw on if set up the universal plate 1.5 to 2 cm, if there is a bench drill after the draw with drill, no bench drill out after nailed can also, bit and nails with a diameter of 3 mm:


Step 5:
The plastic LED to 512 all the form below:




Should be paid attention to: plastic LED LED in corners or Angle, please don't being too close to colloid, should with gel to keep a distance of more than 2 mm, otherwise it will make the LED colloid separation stents with gold thread, inside corner folding number cannot be more than three times in the same place, the corner a 90 ° bend back to the original position to 1 times.

Step 6:
LED all can then after plastic good welding LED, LED light cube is divided into eight noodles to welding, a surface consists of 8 * 8 = 64 LED 8 surface welding to each surface of common cathode welded together (layer beam with Yang Yin), comprise an 8 * 8 * 8 cubic light.
The welding method:




LED welding precautions:
1. Starting from the lattice of the lower right corner welding, welding to note:
Welding speed when the LED quickly, as far as possible for each solder joint in two seconds good welding, the welding point from the bottom of the colloid above 2.5 mm, solder iron temperature is too high to burn out the LED to prevent welding is very slow.Through the practice, with 30 w to about 40 w iron the more appropriate, soldering iron must be grounded, it is best to use with grounding soldering iron, prevent electrostatic breakdown or damage to the LED;
2. Every welding line to test, will look at the LED light, LED against the polarity welding or prevent the bad LED welding.
Test method: multimeter (short circuit at the number of universal meter), black pen diode cathode, diode cathode red pen, each test in the past, if the LED light.
3. After each welding good also to test
Test images:




Here is a good welding on the surface of the two pictures:
Build good after eight sides, each of the faces, namely the negative electrode layer (8) together, and then received a layer control, the following figure:

To this light cube can build good electric test.


單片機源程序如下:
  1. #include <REG52.H>
  2. #include <intrins.h>
  3. #define uchar unsigned char

  4. #define uint unsigned int

  5. uchar display[8][8];

  6. /*rank:A,1,2,3,4,I,心,U*/

  7. uchar code table_cha[8][8]={0x51,0x51,0x51,0x4a,0x4a,0x4a,0x44,0x44,0x18,0x1c,0x18,0x18,0x18,0x18,0x18,0x3c,0x3c,0x66,0x66,0x30,0x18,0xc,0x6,0xf6,0x3c,0x66,0x60,0x38,0x60,0x60,0x66,0x3c,0x30,0x38,0x3c,0x3e,0x36,0x7e,0x30,0x30,0x3c,0x3c,0x18,0x18,0x18,0x18,0x3c,0x3c,0x66,0xff,0xff,0xff,0x7e,0x3c,0x18,0x18,0x66,0x66,0x66,0x66,0x66,0x66,0x7e,0x3c};

  8. /*the "ideasoft"*/

  9. uchar code table_id[40]={0x81,0xff,0x81,0x00,0xff,0x81,0x81,0x7e,0x00,0xff,0x89,0x89,0x00,0xf8,0x27,0x27,0xf8,0x00,0x8f,0x89,0x89,0xf9,0x00,0xff,0x81,0x81,0xff,0x00,0xff,0x09,0x09,0x09,0x01,0x0,0x01,0x01,0xff,0x01,0x01,0x00};

  10. /*railway*/

  11. uchar code dat[128]={0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4,0x25,0x45,0x65,0x85,0xa5,0xc5,0xc9,0xcd,0xd1,0xd5,0xd9,0xb9,0x99,0x79,0x59,0x39,0x35,0x31,0x2d,0x29,0x4a,0x6a,0x8a,0xaa,0xae,0xb2,0xb6,0x96,0x76,0x56,0x52,0x4e,0x6f,0x8f,0x93,0x73,0x6f,0x8f,0x93,0x73,0x4a,0x6a,0x8a,0xaa,0xae,0xb2,0xb6,0x96,0x76,0x56,0x52,0x4e,0x25,0x45,0x65,0x85,0xa5,0xc5,0xc9,0xcd,0xd1,0xd5,0xd9,0xb9,0x99,0x79,0x59,0x39,0x35,0x31,0x2d,0x29,0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4};

  12. /*railway 2*/

  13. uchar code dat2[28]={0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4};

  14. /*railway 3*/

  15. uchar code dat3[24]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x16,0x26,0x36,0x46,0x56,0x66,0x65,0x64,0x63,0x62,0x61,0x60,0x50,0x40,0x30,0x20,0x10};

  16. /*3p char*/

  17. uchar code table_3p[3][8]={0xff,0x89,0xf5,0x93,0x93,0xf5,0x89,0xff,0x0e,0x1f,0x3f,0x7e,0x7e,0x3f,0x1f,0x0e,0x18,0x3c,0x7e,0xff,0x18,0x18,0x18,0x18};

  18. /*initializtion

  19. That is to initialize the program .

  20. It is write to set the timer in c52 mcu.

  21. So the program can renovate the led_3d_cube in fixed time use the interrupt function.*/

  22. void sinter()

  23. {

  24.          IE=0x82;

  25.          TCON=0x01;

  26.          TH0=0xc0;

  27.          TL0=0;

  28.          TR0=1;

  29. }

  30. void delay5us(void)   //誤差 -0.026765046296us STC 1T 22.1184Mhz
  31. {
  32.     unsigned char a,b;
  33.     for(b=7;b>0;b--)
  34.         for(a=2;a>0;a--);
  35. }

  36. void delay(uint i)

  37. {                                                                                                     

  38.          while (i--){
  39.                  delay5us();}//12t的mcu 注釋這個延時即可
  40. }

  41. /*To judge the num bit*/

  42. uchar judgebit(uchar num,uchar b)

  43. {

  44.          char n;

  45.          num=num&(1<<b);

  46.          if (num)

  47.          n=1;

  48.          else

  49.          n=0;

  50.          return n;

  51. }

  52. /*To figure out the round number*/

  53. uchar abs(uchar a)

  54. {

  55.          uchar b;

  56.          b=a/10;

  57.          a=a-b*10;

  58.          if (a>=5)

  59.          b++;

  60.          return b;

  61. }

  62. /*To figure out the absolute value*/

  63. uchar abss(char a)

  64. {

  65.          if (a<0)

  66.          a=-a;

  67.          return a;

  68. }

  69. /*The function can comparat the character.

  70. And remove the big one to the back.*/

  71. void max(uchar *a,uchar *b)

  72. {

  73.    uchar t;

  74.    if ((*a)>(*b))

  75.    {

  76.                    t=(*a);

  77.                    (*a)=(*b);

  78.                    (*b)=t;   

  79.    }

  80. }

  81. /*The function is to figure out the max number and return it.*/

  82. uchar maxt(uchar a,uchar b,uchar c)

  83. {

  84.          if (a<b)

  85.          a=b;

  86.          if (a<c)

  87.          a=c;

  88.          return a;

  89. }

  90. void clear(char le)

  91. {

  92.          uchar i,j;

  93.          for (j=0;j<8;j++)

  94.          {

  95.                    for (i=0;i<8;i++)

  96.                    display[j][i]=le;

  97.          }

  98. }

  99. void trailler(uint speed)

  100. {

  101.          char i,j;

  102.          for (i=6;i>=-3;i--)

  103.          {

  104.                    if (i>=0)

  105.                    {

  106.                             for (j=0;j<8;j++)

  107.                             display[j][i]=display[j][i+1];

  108.                    }

  109.                    if (i<4)

  110.                    {

  111.                             for (j=0;j<8;j++)

  112.                             display[j][i+4]=0;

  113.                    }

  114.                    delay(speed);

  115.          }

  116. }

  117. void point(uchar x,uchar y,uchar z,uchar le)

  118. {

  119.          uchar ch1,ch0;

  120.          ch1=1<<x;

  121.          ch0=~ch1;

  122.          if (le)

  123.          display[z][y]=display[z][y]|ch1;

  124.          else

  125.          display[z][y]=display[z][y]&ch0;

  126. }

  127. void type(uchar cha,uchar y)

  128. {        

  129.          uchar xx;

  130.          for (xx=0;xx<8;xx++)

  131.          {

  132.          display[xx][y]=table_cha[cha][xx];

  133.          }

  134. }

  135. /*The first variable is the distance from the midpoint.

  136. The second is the layer.

  137. the third is the flash speed of the time between each two point.

  138. The forth is the enable io,it controls weather draw or claen.*/

  139. void cirp(char cpp,uchar dir,uchar le)

  140. {

  141.          uchar a,b,c,cp;

  142.          if ((cpp<128)&(cpp>=0))

  143.          {

  144.                    if (dir)

  145.                    cp=127-cpp;

  146.                    else

  147.                    cp=cpp;

  148.                    a=(dat[cp]>>5)&0x07;

  149.                    b=(dat[cp]>>2)&0x07;

  150.                    c=dat[cp]&0x03;

  151.                    if (cpp>63)

  152.                    c=7-c;

  153.                    point (a,b,c,le);

  154.          }

  155. }

  156. void line(uchar x1,uchar y1,uchar z1,uchar x2,uchar y2,uchar z2,uchar le)

  157. {

  158.          char t,a,b,c,a1,b1,c1,i;

  159.          a1=x2-x1;

  160.          b1=y2-y1;

  161.          c1=z2-z1;

  162.          t=maxt(abss(a1),abss(b1),abss(c1));

  163.          a=x1*10;

  164.          b=y1*10;

  165.          c=z1*10;

  166.          a1=a1*10/t;

  167.          b1=b1*10/t;

  168.          c1=c1*10/t;

  169.          for (i=0;i<t;i++)

  170.          {

  171.                    point(abs(a),abs(b),abs(c),le);

  172.                    a+=a1;

  173.                    b+=b1;

  174.                    c+=c1;

  175.          }

  176.          point(x2,y2,z2,le);

  177. }

  178. void box(uchar x1,uchar y1,uchar z1,uchar x2,uchar y2,uchar z2,uchar fill,uchar le)

  179. {

  180.          uchar i,j,t=0;

  181.          max(&x1,&x2);

  182.          max(&y1,&y2);

  183.          max(&z1,&z2);

  184.          for (i=x1;i<=x2;i++)

  185.                    t|=1<<i;

  186.          if (!le)

  187.                    t=~t;

  188.          if (fill)

  189.          {

  190.                    if (le)

  191.                    {

  192.                             for (i=z1;i<=z2;i++)

  193.                             {

  194.                                      for (j=y1;j<=y2;j++)

  195.                                                display[j][i]|=t;

  196.                             }

  197.                    }

  198.                    else

  199.                    {

  200.                             for (i=z1;i<=z2;i++)

  201.                             {

  202.                                      for (j=y1;j<=y2;j++)

  203.                                                display[j][i]&=t;

  204.                             }

  205.                    }

  206.          }

  207.          else

  208.          {

  209.                    if (le)

  210.                    {

  211.                             display[y1][z1]|=t;

  212.                             display[y2][z1]|=t;

  213.                             display[y1][z2]|=t;

  214.                             display[y2][z2]|=t;

  215.                    }

  216.                    else

  217.                    {

  218.                            display[y1][z1]&=t;

  219.                             display[y2][z1]&=t;

  220.                             display[y1][z2]&=t;

  221.                             display[y2][z2]&=t;

  222.                    }

  223.                    t=(0x01<<x1)|(0x01<<x2);

  224.                    if (!le)

  225.                             t=~t;

  226.                    if (le)

  227.                    {

  228.                             for (j=z1;j<=z2;j+=(z2-z1))

  229.                             {

  230.                                      for (i=y1;i<=y2;i++)

  231.                                                display[i][j]|=t;

  232.                             }

  233.                             for (j=y1;j<=y2;j+=(y2-y1))

  234.                             {

  235.                                      for (i=z1;i<=z2;i++)

  236.                                                display[j][i]|=t;

  237.                             }

  238.                    }

  239.                    else

  240.                    {

  241.                             for (j=z1;j<=z2;j+=(z2-z1))

  242.                             {

  243.                                      for (i=y1;i<=y2;i++)

  244.                                      {

  245.                                      display[i][j]&=t;

  246.                                      }

  247.                             }

  248.                             for (j=y1;j<=y2;j+=(y2-y1))

  249.                             {

  250.                                      for (i=z1;i<=z2;i++)

  251.                                      {

  252.                                      display[j][i]&=t;

  253.                                      }

  254.                             }

  255.                    }

  256.          }

  257. }

  258. void box_apeak_xy(uchar x1,uchar y1,uchar z1,uchar x2,uchar y2,uchar z2,uchar fill,uchar le)

  259. {

  260.          uchar i;

  261.          max(&z1,&z2);

  262.          if (fill)

  263.          {

  264.                    for (i=z1;i<=z2;i++)

  265.                    {

  266.                             line (x1,y1,i,x2,y2,i,le);

  267.                    }

  268.          }

  269.          else

  270.          {

  271.                    line (x1,y1,z1,x2,y2,z1,le);

  272.                    line (x1,y1,z2,x2,y2,z2,le);

  273.                    line (x2,y2,z1,x2,y2,z2,le);

  274.                    line (x1,y1,z1,x1,y1,z2,le);

  275.          }

  276. }

  277. void poke(uchar n,uchar x,uchar y)

  278. {

  279.          uchar i;

  280.          for (i=0;i<8;i++)

  281.          {

  282.           point(x,y,i,judgebit(n,i));

  283.          }

  284. }

  285. void boxtola(char i,uchar n)

  286. {

  287.          if ((i>=0)&(i<8))

  288.          {

  289.                    poke(n,0,7-i);

  290.          }

  291.          if ((i>=8)&(i<16))

  292.          {

  293.                    poke(n,i-8,0);

  294.          }

  295.          if ((i>=16)&(i<24))

  296.          {

  297.                    poke(n,7,i-16);

  298.          }



  299. }

  300. void rolldisplay(uint speed)

  301. {

  302.          uchar j;

  303.          char i,a;

  304.          for (i=23;i>-40;i--)

  305.          {

  306.                    for (j=0;j<40;j++)

  307.                    {

  308.                             a=i+j;

  309.                             if ((a>=0)&(a<24))

  310.                             boxtola(a,table_id[j]);

  311.                    }

  312.                    delay(speed);

  313.          }

  314. }

  315. void roll_apeak_yz(uchar n,uint speed)

  316. {

  317.          uchar i;

  318.          switch(n)

  319.          {

  320.                    case 1:

  321.                             for (i=0;i<7;i++)

  322.                             {

  323.                                      display[i][7]=0;

  324.                                      display[7][6-i]=255;

  325.                                      delay(speed);

  326.                             };

  327.                             break;

  328.                    case 2:

  329.                             for (i=0;i<7;i++)

  330.                             {

  331.                                      display[7][7-i]=0;

  332.                                      display[6-i][0]=255;

  333.                                      delay(speed);

  334.                             };

  335.                             break;

  336.                    case 3:

  337.                             for (i=0;i<7;i++)

  338.                             {

  339.                                      display[7-i][0]=0;

  340.                                      display[0][i+1]=255;

  341.                                      delay(speed);

  342.                             };

  343.                             break;

  344.                    case 0:

  345.                             for (i=0;i<7;i++)

  346.                             {

  347.                                      display[0][i]=0;

  348.                                      display[i+1][7]=255;

  349.                                      delay(speed);

  350.                             };

  351.          }

  352. }

  353. void roll_apeak_xy(uchar n,uint speed)

  354. {

  355.          uchar i;

  356.          switch(n)

  357.          {

  358.                    case 1:

  359.                             for (i=0;i<7;i++)

  360.                             {

  361.                                      line(0,i,0,0,i,7,0);

  362.                                      line(i+1,7,0,i+1,7,7,1);

  363.                                      delay(speed);

  364.                             };

  365.                             break;

  366.                    case 2:

  367.                             for (i=0;i<7;i++)

  368.                             {

  369.                                      line(i,7,0,i,7,7,0);

  370.                                      line(7,6-i,0,7,6-i,7,1);

  371.                                      delay(speed);

  372.                             };

  373.                             break;

  374.                    case 3:

  375.                             for (i=0;i<7;i++)

  376.                             {

  377.                                      line(7,7-i,0,7,7-i,7,0);

  378.                                      line(6-i,0,0,6-i,0,7,1);

  379.                                      delay(speed);

  380.                             };

  381.                             break;

  382.                    case 0:

  383.                             for (i=0;i<7;i++)

  384.                             {

  385.                                      line(7-i,0,0,7-i,0,7,0);

  386.                                      line(0,i+1,0,0,i+1,7,1);

  387.                                      delay(speed);

  388.                             };

  389.          }

  390. }

  391. void roll_3_xy(uchar n,uint speed)

  392. {

  393.          uchar i;

  394.          switch(n)

  395.          {

  396.                    case 1:

  397.                             for (i=0;i<8;i++)

  398.                             {

  399.                                      box_apeak_xy (0,i,0,7,7-i,7,1,1);

  400.                                      delay(speed);

  401.                                      if (i<7)

  402.                                      box_apeak_xy (3,3,0,0,i,7,1,0);

  403.                             };

  404.                             break;

  405.                    case 2:

  406.                             for (i=0;i<8;i++)

  407.                             {

  408.                                       box_apeak_xy (7-i,0,0,i,7,7,1,1);

  409.                                      delay(speed);

  410.                                      if (i<7)

  411.                                      box_apeak_xy (3,4,0,i,7,7,1,0);

  412.                             };

  413.                             break;

  414.                    case 3:

  415.                             for (i=0;i<8;i++)

  416.                             {

  417.                                      box_apeak_xy (0,i,0,7,7-i,7,1,1);

  418.                                      delay(speed);

  419.                                      if (i<7)

  420.                                      box_apeak_xy (4,4,0,7,7-i,7,1,0);

  421.                             };

  422.                             break;

  423.                    case 0:

  424.                             for (i=0;i<8;i++)

  425.                             {

  426.                                      box_apeak_xy (7-i,0,0,i,7,7,1,1);

  427.                                      delay(speed);

  428.                                      if (i<7)

  429.                                      box_apeak_xy (4,3,0,7-i,0,7,1,0);

  430.                             };

  431.          }

  432. }

  433. void trans(uchar z,uint speed)

  434. {

  435.          uchar i,j;

  436.          for (j=0;j<8;j++)

  437.          {

  438.                    for (i=0;i<8;i++)

  439.                    {

  440.                             display[z][i]>>=1;

  441.                    }

  442.                    delay(speed);

  443.          }

  444. }

  445. void tranoutchar(uchar c,uint speed)

  446. {

  447.          uchar i,j,k,a,i2=0;

  448.          for (i=0;i<8;i++)

  449.          {

  450.                    if (i<7)

  451.                    box_apeak_xy (i+1,0,0,i+1,7,7,1,1);

  452.                    box_apeak_xy (i2,0,0,i2,7,7,1,0);

  453.                    a=0;

  454.                    i2=i+1;

  455.                    for (j=0;j<=i;j++)

  456.                    {

  457.                             a=a|(1<<j);

  458.                    }

  459.                    for (k=0;k<8;k++)

  460.                    {

  461.                             display[k][3]|=table_cha[c][k]&a;

  462.                             display[k][4]|=table_cha[c][k]&a;

  463.                    }

  464.                    delay(speed);

  465.          }

  466. }

  467. void transss()

  468. {

  469.          uchar i,j;

  470.          for (i=0;i<8;i++)

  471.          {

  472.                    for (j=0;j<8;j++)

  473.                    display[i][j]<<=1;

  474.          }

  475. }



  476. /*From now on,the function below is to display the flash.*/

  477. void flash_1()

  478. {



  479.          clear(0);

  480.          type(1,0);

  481.          delay(60000);

  482.          type(2,0);

  483.          delay(60000);

  484.          type(3,0);

  485.          delay(60000);

  486.          type(4,0);

  487.          delay(60000);

  488.          delay(60000);

  489.          clear(0);

  490.          rolldisplay(30000);

  491.          type(0,7);

  492.          delay(60000);

  493.          trailler(6000);

  494.          delay(60000);

  495. }

  496. void flash_2()

  497. {

  498.          uchar i;

  499.          for (i=129;i>0;i--)

  500.          {

  501.                    cirp(i-2,0,1);

  502.                    delay(8000);

  503.                    cirp(i-1,0,0);

  504.          }

  505.          delay(8000);     

  506.          for (i=0;i<136;i++)

  507.          {

  508.                    cirp(i,1,1);

  509.                    delay(8000);

  510.                    cirp(i-8,1,0);

  511.          }

  512.          delay(8000);

  513.                   for (i=129;i>0;i--)

  514.          {

  515.                    cirp(i-2,0,1);

  516.                    delay(8000);

  517.          }

  518.          delay(8000);

  519.                    for (i=0;i<128;i++)

  520.          {

  521.                    cirp(i-8,1,0);

  522.                    delay(8000);

  523.          }

  524.          delay(60000);  

  525. }

  526. void flash_3()

  527. {

  528.          char i;

  529.          for (i=0;i<8;i++)

  530.          {

  531.                    box_apeak_xy(0,i,0,7,i,7,1,1);

  532.                    delay(20000);

  533.                    if (i<7)

  534.                    box_apeak_xy(0,i,0,7,i,7,1,0);

  535.          }

  536.          for (i=7;i>=0;i--)

  537.          {

  538.                    box_apeak_xy(0,i,0,7,i,7,1,1);

  539.                    delay(20000);

  540.                    if (i>0)

  541.                    box_apeak_xy(0,i,0,7,i,7,1,0);

  542.          }

  543.          for (i=0;i<8;i++)

  544.          {

  545.                    box_apeak_xy(0,i,0,7,i,7,1,1);

  546.                    delay(20000);

  547.                    if (i<7)

  548.                    box_apeak_xy(0,i,0,7,i,7,1,0);

  549.          }

  550. }

  551. void flash_4()

  552. {

  553.          char i,j,an[8];

  554.          for (j=7;j<15;j++)

  555.                    an[j-7]=j;

  556.          for (i=0;i<=16;i++)

  557.          {

  558.                    for (j=0;j<8;j++)

  559.                    {

  560.                             if ((an[j]<8)&(an[j]>=0))

  561.                             line(0,an[j],j,7,an[j],j,1);

  562.                    }

  563.                    for (j=0;j<8;j++)

  564.                    {

  565.                             if (((an[j]+1)<8)&(an[j]>=0))

  566.                             line(0,an[j]+1,j,7,an[j]+1,j,0);

  567.                    }

  568.                    for (j=0;j<8;j++)

  569.                    {

  570.                             if (an[j]>0)

  571.                             an[j]--;

  572.                    }

  573.                    delay(15000);

  574.          }

  575.          for (j=0;j<8;j++)

  576.                    an[j]=1-j;

  577.          for (i=0;i<=16;i++)

  578.          {

  579.                    for (j=0;j<8;j++)

  580.                    {

  581.                             if ((an[j]<8)&(an[j]>=0))

  582.                             line(0,an[j],j,7,an[j],j,1);

  583.                    }

  584.                    for (j=0;j<8;j++)

  585.                    {

  586.                             if (((an[j]-1)<7)&(an[j]>0))

  587.                             line(0,an[j]-1,j,7,an[j]-1,j,0);

  588.                    }

  589.                    for (j=0;j<8;j++)

  590.                    {

  591.                             if (an[j]<7)

  592. ……………………

  593. …………限于本文篇幅 余下代碼請從51黑下載附件…………
復制代碼





回復

使用道具 舉報

ID:282845 發表于 2018-2-16 05:08 | 顯示全部樓層
謝謝分享!!!
回復

使用道具 舉報

ID:281681 發表于 2018-2-16 22:55 來自觸屏版 | 顯示全部樓層
感謝分享!()
回復

使用道具 舉報

ID:210102 發表于 2018-2-21 20:59 | 顯示全部樓層
感謝分享!()
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 亚洲成人动漫在线观看 | 日本在线免费视频 | 亚洲精品乱码久久久久久蜜桃91 | 亚洲视频一区在线观看 | 91在线小视频 | 五月婷综合 | 欧美三级 欧美一级 | 久久精品www人人爽人人 | 91久久久久久久久久 | 色多多在线观看 | 能看的av网站 | 亚洲欧美精品一区二区 | 91禁蘑菇在线看 | 99cao| 黄色三级网 | 亚洲二区在线 | 亚洲精品一区二区三 | 久久av一区二区 | av不卡一区 | 亚洲美女一区 | 欧美激情五月 | 黄色a毛片| 国产香蕉视频在线观看 | 91午夜精品亚洲一区二区三区 | 欧美日在线 | 日本在线观看一区 | 成人欧美一区二区三区黑人孕妇 | 精品在线一区 | 黄色一区二区三区 | 国产免费小视频 | 在线观看h视频 | 国产一区二区免费看 | 成人激情在线 | 国产精品久久久久久久久久久久午夜片 | 在线免费观看av网站 | 国产h片在线观看 | 国产区一区 | 中文字幕av在线 | 毛片www | 免费黄色片视频 | 午夜精品久久久久久 |