Thông báo

Collapse
No announcement yet.

Source VB6 chỉnh Hiệu ứng Led Sao Băng

Collapse
X
 
  • Lọc
  • Giờ
  • Show
Clear All
new posts

  • #31
    bạn ơi không biết bạn thử trên mạch thực chưa.
    minh thử thì nó bị thế này: mình diều khiển led 1 sáng 50%.khi nạp vào, chạy thì thấy led 1 sáng 50% nhưng 7 led còn lại chớp tắt liên tục. mình thử các kiểu thi thấy led nào không bật sáng đều bị chớp tắt như vậy.
    đây là đoạn code mình lấy ra từ chương trình
    #include<regx51.h>
    char NumPort=8;
    char PWM[32];
    char chuki=0;
    void SetLed(char i, char v)
    {
    switch (i)
    {
    case 0:
    P1_0 = v; return;
    case 1:
    P1_1 = v; return;
    case 2:
    P1_2 = v; return;
    case 3:
    P1_3 = v; return;
    case 4:
    P1_4 = v; return;
    case 5:
    P1_5 = v; return;
    case 6:
    P1_6 = v; return;
    case 7:
    P1_7 = v; return;
    case 8:
    P3_0 = v; return;
    case 9:
    P3_1 = v; return;
    case 10:
    P3_2 = v; return;
    case 11:
    P3_3 = v; return;
    case 12:
    P3_4 = v; return;
    case 13:
    P3_5 = v; return;
    case 14:
    P3_6 = v; return;
    case 15:
    P3_7 = v; return;
    case 16:
    P2_0 = v; return;
    case 17:
    P2_1 = v; return;
    case 18:
    P2_2 = v; return;
    case 19:
    P2_3 = v; return;
    case 20:
    P2_4 = v; return;
    case 21:
    P2_5 = v; return;
    case 22:
    P2_6 = v; return;
    case 23:
    P2_7 = v; return;
    case 24:
    P0_0 = v; return;
    case 25:
    P0_1 = v; return;
    case 26:
    P0_2 = v; return;
    case 27:
    P0_3 = v; return;
    case 28:
    P0_4 = v; return;
    case 29:
    P0_5 = v; return;
    case 30:
    P0_6 = v; return;
    case 31:
    P0_7 = v; return;
    }
    }
    /*--------------------------------------*/
    void Timer0()interrupt 1
    {
    char i;
    TF0=0;
    TR0=0; //stop ngat
    for (i=0 ; i<NumPort ; i++)
    if (chuki <= PWM[i]) SetLed(i,1);
    else SetLed(i,0);

    if (++chuki == 100) chuki=0;
    TR0=1; //tiep tuc ngat
    }
    void delay(unsigned int ms)
    {
    unsigned int i, j;
    for(i=0 ; i<ms ; i++)
    for(j=0 ; j<120 ; j++) {}
    }
    void ResetPWM()
    {
    unsigned char i;
    for(i=0 ; i<NumPort ; i++) PWM[i]=0;
    }
    main()
    {
    EA=0;
    TMOD=0x02; //timer 0: che do 2: 8 bit tu dong nap lai
    TH0 = 156;
    TL0 = 156;
    ET0=1;
    EA=1;
    TR0=1;
    while (1)
    {

    delay(17);
    ResetPWM();
    PWM[0]=100;//1
    delay(17);
    ResetPWM();
    PWM[0]=51;PWM[1]=100;//2
    delay(17);
    ResetPWM();
    PWM[0]=37;PWM[1]=52;PWM[2]=100;//3
    delay(17);
    ResetPWM();
    PWM[0]=5;PWM[1]=37;PWM[2]=53;PWM[3]=100;//4
    delay(17);
    ResetPWM();
    PWM[0]=5;PWM[1]=5;PWM[2]=36;PWM[3]=52;PWM[4]=100;//5
    delay(17);
    ResetPWM();
    PWM[0]=5;PWM[1]=5;PWM[2]=5;PWM[3]=36;PWM[4]=52;PWM[5]=100;//6
    delay(17);
    ResetPWM();
    PWM[0]=5;PWM[1]=5;PWM[2]=5;PWM[3]=5;PWM[4]=36;PWM[5]=52;PWM[6]=100;//7
    delay(17);
    ResetPWM();
    PWM[0]=5;PWM[1]=5;PWM[2]=5;PWM[3]=5;PWM[4]=5;PWM[5]=36;PWM[6]=52;PWM[7]=100;//8
    delay(17);
    ResetPWM();
    //9
    delay(17);
    ResetPWM();
    //10
    delay(17);
    ResetPWM();
    //11
    }
    }

    Comment


    • #32
      Thay chỗ gọi delay bằng 2 lệnh sau:
      while(!chuki);//doi lan ngat dau tien
      while(chuki);//doi lan ngat cuoi cung
      , , ,

      Comment


      • #33
        minh muk lam led hieu ung sao bang.cac bak co code koh giup minh voi.

        Comment


        • #34
          /*--------------------------------------*/
          void Timer0()interrupt 1
          {
          char i;
          TF0=0;
          TR0=0; //stop ngat
          for (i=0 ; i<NumPort ; i++)
          if (chuki <=
          PWM[i]) SetPort(i,1);
          else
          SetPort(i,0);
          chuki += 5; //Tang 7,8,9,10 se khong chop, dung tang > 10
          if (chuki >= 100) chuki=0;
          TR0=1; //tiep tuc ngat
          }

          Tang chuki += 10; se dam bao het giat luon

          Comment


          • #35
            Nguyên văn bởi CDN ĐN Xem bài viết
            bạn ơi không biết bạn thử trên mạch thực chưa.
            minh thử thì nó bị thế này: mình diều khiển led 1 sáng 50%.khi nạp vào, chạy thì thấy led 1 sáng 50% nhưng 7 led còn lại chớp tắt liên tục. mình thử các kiểu thi thấy led nào không bật sáng đều bị chớp tắt như vậy.
            đây là đoạn code mình lấy ra từ chương trình}
            while (1)
            {

            ..............................
            delay(17);
            ResetPWM();
            //9 Trạng thái số 9 k có dữ liệu đồng nghĩa với Led luôn tắt

            delay(17);
            ResetPWM();
            //10 Trạng thái số 10 k có dữ liệu đồng nghĩa với Led luôn tắt

            delay(17);
            ResetPWM();
            //11 Trạng thái số 11 k có dữ liệu đồng nghĩa với Led luôn tắt
            }
            }

            Kết luận: chớp tắt liên tục là đúng
            Chú ý mình đã chỉnh sửa lại để không còn cảnh giật hình nữa.

            Comment


            • #36
              Dưới đây là chương trình đã chỉnh sửa để không còn bị giật hình nữa

              Chương trình cài đặt: LedShow setup.zip
              Nếu đã cài thì cập nhật lại: LedShow.exe
              ví dụ về Led Sao băng: SaoBang.led
              Source VB6: LedShow VB6.zip

              Comment


              • #37
                Nguyên văn bởi tuangroup Xem bài viết
                minh muk lam led hieu ung sao bang.cac bak co code koh giup minh voi.
                đó có code C cho bạn luôn đó

                Comment


                • #38
                  Nguyên văn bởi rptdnmqs Xem bài viết
                  Thay chỗ gọi delay bằng 2 lệnh sau:
                  while(!chuki);//doi lan ngat dau tien
                  while(chuki);//doi lan ngat cuoi cung
                  như vậy đâu có chỉnh được nhanh chậm theo ý muốn trong hàm main đâu. Vì ít port nó sẽ chạy nhanh nên chỉnh delay cao, nhiều port chạy chậm fải chỉnh delay thấp.

                  Comment


                  • #39
                    Nguyên văn bởi pctcom Xem bài viết
                    Thank bạn đã chia sẻ code.

                    Tôi có vài ý như sau:
                    - Bạn nên viết trên Visual Studio 8 hoặc mới hơn để hỗ trợ tốt Unicode tiếng Việt.
                    - Thêm chức năng Loop trong giao diện để giảm kích thước code.
                    - Đã làm trên VS8, cái thằng datagridview.Refresh() không chạy khi đổi màu 1 cell -> chán
                    vd:
                    Private Sub SetColorPort(ByVal name As String)
                    Dim r As Integer

                    For r = 0 To dgvLed.RowCount - 1
                    If dgvLed.Item("Led" & Mid(name, 5, 2), r).Value = "" Then
                    dgvLed.Columns.Item("Led" & Mid(name, 5, 2)).DefaultCellStyle.BackColor = Color.Black
                    Else
                    dgvLed.Columns.Item("Led" & Mid(name, 5, 2)).DefaultCellStyle.BackColor = SetColorLed(Me.TabPage2.Controls(name).Text)
                    End If
                    Next
                    dgvLed.Refresh()
                    End Sub

                    Có nghĩa: khi chọn màu trước đó thì khi lick vào cell trong dgvLed (dgv: DataGridView) thì nó ra đúng màu, còn khi cần thay đổi màu trong cell thông qua lệnh "dgvLed.Columns.Item("Led" & Mid(name, 5, 2)).DefaultCellStyle.BackColor = SetColorLed(Me.TabPage2.Controls(name).Text)" thì cuối dòng gọi hàm "dgvLed.Refresh()" nó không đổi màu (trừ khi dblick vào trong cell đó nó mới đổi màu.
                    Trong VB6 tôi cần đổi màu thông qua việc gán bằng lệnh là tự động đổi màu, không cần gọi hàm Refresh làm gì.


                    - Thêm chức năng Loop chổ nào vậy bạn? chưa hiểu.
                    Last edited by quangvinh2k8; 09-01-2012, 12:11.

                    Comment


                    • #40
                      Bạn ơi mình thử sửa rồi nhưng không được vẫn bị giật hinh
                      đây là vd khác nhe,mở 32 cổng rựt nhanh hơn, mo phổng Proteus cũng thấy được,các bạn thử tét lại xem

                      #include<regx51.h>
                      char NumPort=32;
                      char PWM[32];
                      char chuki=0;
                      void SetLed(char i, char v)
                      {
                      switch (i)
                      {
                      case 0:
                      P1_0 = v; return;
                      case 1:
                      P1_1 = v; return;
                      case 2:
                      P1_2 = v; return;
                      case 3:
                      P1_3 = v; return;
                      case 4:
                      P1_4 = v; return;
                      case 5:
                      P1_5 = v; return;
                      case 6:
                      P1_6 = v; return;
                      case 7:
                      P1_7 = v; return;
                      case 8:
                      P3_0 = v; return;
                      case 9:
                      P3_1 = v; return;
                      case 10:
                      P3_2 = v; return;
                      case 11:
                      P3_3 = v; return;
                      case 12:
                      P3_4 = v; return;
                      case 13:
                      P3_5 = v; return;
                      case 14:
                      P3_6 = v; return;
                      case 15:
                      P3_7 = v; return;
                      case 16:
                      P2_0 = v; return;
                      case 17:
                      P2_1 = v; return;
                      case 18:
                      P2_2 = v; return;
                      case 19:
                      P2_3 = v; return;
                      case 20:
                      P2_4 = v; return;
                      case 21:
                      P2_5 = v; return;
                      case 22:
                      P2_6 = v; return;
                      case 23:
                      P2_7 = v; return;
                      case 24:
                      P0_0 = v; return;
                      case 25:
                      P0_1 = v; return;
                      case 26:
                      P0_2 = v; return;
                      case 27:
                      P0_3 = v; return;
                      case 28:
                      P0_4 = v; return;
                      case 29:
                      P0_5 = v; return;
                      case 30:
                      P0_6 = v; return;
                      case 31:
                      P0_7 = v; return;
                      }
                      }
                      /*--------------------------------------*/
                      void Timer0()interrupt 1
                      {
                      char i;
                      TF0=0;
                      TR0=0; //stop ngat
                      for (i=0 ; i<NumPort ; i++)
                      if (chuki <= PWM[i]) SetLed(i,1);
                      else SetLed(i,0);

                      if (++chuki == 100) chuki=0;
                      TR0=1; //tiep tuc ngat
                      }
                      void delay(unsigned int ms)
                      {
                      unsigned int i, j;
                      for(i=0 ; i<ms ; i++)
                      for(j=0 ; j<120 ; j++) {}
                      }
                      void ResetPWM()
                      {
                      unsigned char i;
                      for(i=0 ; i<NumPort ; i++) PWM[i]=0;
                      }
                      main()
                      {
                      EA=0;
                      TMOD=0x02; //timer 0: che do 2: 8 bit tu dong nap lai
                      TH0 = 156;
                      TL0 = 156;
                      ET0=1;
                      EA=1;
                      TR0=1;
                      while (1)
                      {

                      delay(5);
                      ResetPWM();
                      PWM[0]=49;PWM[13]=76;PWM[21]=100;//1
                      }
                      }
                      file hex.zip

                      Comment


                      • #41
                        oh được rồi. mình quên thay "if (++chuki == 100) chuki=10;" hihi
                        Cảm ơn bạn vì phần mềm rất hay.cố gắng phát triển nhé

                        Comment


                        • #42
                          Nguyên văn bởi CDN ĐN Xem bài viết
                          Bạn ơi mình thử sửa rồi nhưng không được vẫn bị giật hinh
                          đây là vd khác nhe,mở 32 cổng rựt nhanh hơn, mo phổng Proteus cũng thấy được,các bạn thử tét lại xem
                          Bị giật hình là do chổ này:
                          if (++chuki == 100) chuki=0;
                          thay bằng:
                          chuki += 5; // 6,7,8,9,10 thay bằng số cao hơn sẽ không còn giật hình nữa. Đừng quá 10 nhé
                          if (chuki >= 100) chuki=0;

                          Tôi đã chỉnh lại hết và post toàn bộ source, đã thử không còn giật hình nữa (lúc đầu tiên bị giật, sau ngâm cú lại chổ đó thất hết giựt cà tưng Mừng húm)

                          Comment


                          • #43
                            Nguyên văn bởi CDN ĐN Xem bài viết
                            oh được rồi. mình quên thay "if (++chuki == 100) chuki=10;" hihi
                            Cảm ơn bạn vì phần mềm rất hay.cố gắng phát triển nhé
                            thay giống đoạn trên tôi vừa trả lời nhé. Thay giống bạn là chít đó chuki=10; k đc đâu

                            Comment


                            • #44
                              Mình vẫn thấy có những yếu điểm mà không thể khắc phục, như đoạn lệnh này cũng được sinh ra từ phần mềm này
                              Mình cho sáng dần mờ dần nhưng những bóng sáng dần lên thì những bóng tắt lại sáng mờ mờ mặc dù những bóng đó trong chương trình thì mình cho tắt


                              #include<regx51.h>
                              char NumPort=11;
                              char PWM[32];
                              char chuki=0;
                              void SetPort(char i, char v)
                              {
                              switch (i)
                              {
                              case 0:
                              P1_0
                              = v; return;
                              case 1:
                              P1_1
                              = v; return;
                              case 2:
                              P1_2
                              = v; return;
                              case 3:
                              P1_3
                              = v; return;
                              case 4:
                              P1_4
                              = v; return;
                              case 5:
                              P1_5
                              = v; return;
                              case 6:
                              P1_6
                              = v; return;
                              case 7:
                              P1_7
                              = v; return;
                              case 8:
                              P3_0
                              = v; return;
                              case 9:
                              P3_1
                              = v; return;
                              case 10:
                              P3_2
                              = v; return;
                              case 11:
                              P3_3
                              = v; return;
                              case 12:
                              P3_4
                              = v; return;
                              case 13:
                              P3_5
                              = v; return;
                              case 14:
                              P3_6
                              = v; return;
                              case 15:
                              P3_7
                              = v; return;
                              case 16:
                              P2_0
                              = v; return;
                              case 17:
                              P2_1
                              = v; return;
                              case 18:
                              P2_2
                              = v; return;
                              case 19:
                              P2_3
                              = v; return;
                              case 20:
                              P2_4
                              = v; return;
                              case 21:
                              P2_5
                              = v; return;
                              case 22:
                              P2_6
                              = v; return;
                              case 23:
                              P2_7
                              = v; return;
                              case 24:
                              P0_0
                              = v; return;
                              case 25:
                              P0_1
                              = v; return;
                              case 26:
                              P0_2
                              = v; return;
                              case 27:
                              P0_3
                              = v; return;
                              case 28:
                              P0_4
                              = v; return;
                              case 29:
                              P0_5
                              = v; return;
                              case 30:
                              P0_6
                              = v; return;
                              case 31:
                              P0_7
                              = v; return;
                              }
                              }
                              /*--------------------------------------*/
                              void Timer0()interrupt 1
                              {
                              char i;
                              TF0=0;
                              TR0=0; //stop ngat
                              for (i=0 ; i<NumPort ; i++)
                              if (chuki <=
                              PWM[i]) SetPort(i,1);
                              else
                              SetPort(i,0);
                              chuki += 4; //Tang 7,8,9,10 se bot chop
                              if (chuki >= 100) chuki=0;
                              TR0=1; //tiep tuc ngat
                              }
                              void delay(unsigned int ms)
                              {
                              unsigned int i, j;
                              for(i=0 ; i<ms ; i++)
                              for(j=0 ; j<120 ; j++) {}
                              }
                              void ResetPWM()
                              {
                              unsigned char i;
                              for(i=0 ; i<NumPort ; i++)
                              PWM[i]=0;
                              }
                              main()
                              {
                              EA=0;
                              TMOD=0x02; //timer 0 - che do 2 - 8 bit tu dong nap lai
                              TH0 = 150;
                              TL0 = 150;
                              ET0=1;
                              EA=1;
                              TR0=1;
                              while (1)
                              {

                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[10]=100;//1
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[4]=100;PWM[9]=100;PWM[10]=100;//2
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//3
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//4
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//5
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//6
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//7
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;//8
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[10]=100;//9
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[4]=100;PWM[9]=100;PWM[10]=100;//10
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//11
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//12
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//13
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//14
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//15
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;//16
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;//17
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[4]=100;//18
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[5]=100;//19
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[6]=100;//20
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[7]=100;//21
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[8]=100;//22
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[9]=100;//23
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[10]=100;//24
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[10]=100;//25
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[4]=100;PWM[10]=100;//26
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[5]=100;PWM[10]=100;//27
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[6]=100;PWM[10]=100;//28
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[7]=100;PWM[10]=100;//29
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[8]=100;PWM[10]=100;//30
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[9]=100;PWM[10]=100;//31
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[9]=100;PWM[10]=100;//32
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[4]=100;PWM[9]=100;PWM[10]=100;//33
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[5]=100;PWM[9]=100;PWM[10]=100;//34
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[6]=100;PWM[9]=100;PWM[10]=100;//35
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[7]=100;PWM[9]=100;PWM[10]=100;//36
                              delay(10);
                              ResetPWM();
                              PWM[8]=100;PWM[9]=100;PWM[10]=100;//37
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[1]=100;PWM[2]=100;PWM[3]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//38
                              delay(10);
                              ResetPWM();
                              PWM[4]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//39
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[1]=100;PWM[2]=100;PWM[5]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//40
                              delay(10);
                              ResetPWM();
                              PWM[6]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//41
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//42
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//43
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[4]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//44
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[5]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//45
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//46
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[4]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//47
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//48
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//49
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//50
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//51
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//52
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;//53
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//54
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;//55
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//56
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;//57
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//58
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;//59
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=10;PWM[4]=10;PWM[5]=10;PWM[6]=10;PWM[7]=10;PWM[8]=10;PWM[9]=10;PWM[10]=10;//60
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//61
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=30;PWM[4]=30;PWM[5]=30;PWM[6]=30;PWM[7]=30;PWM[8]=30;PWM[9]=30;PWM[10]=30;//62
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//63
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//64
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//65
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=70;PWM[4]=70;PWM[5]=70;PWM[6]=70;PWM[7]=70;PWM[8]=70;PWM[9]=70;PWM[10]=70;//66
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//67
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=90;PWM[4]=90;PWM[5]=90;PWM[6]=90;PWM[7]=90;PWM[8]=90;PWM[9]=90;PWM[10]=90;//68
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//69
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=90;PWM[4]=90;PWM[5]=90;PWM[6]=90;PWM[7]=90;PWM[8]=90;PWM[9]=90;PWM[10]=90;//70
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//71
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=70;PWM[4]=70;PWM[5]=70;PWM[6]=70;PWM[7]=70;PWM[8]=70;PWM[9]=70;PWM[10]=70;//72
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//73
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//74
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//75
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=30;PWM[4]=30;PWM[5]=30;PWM[6]=30;PWM[7]=30;PWM[8]=30;PWM[9]=30;PWM[10]=30;//76
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//77
                              delay(10);
                              ResetPWM();
                              PWM[3]=10;PWM[4]=10;PWM[5]=10;PWM[6]=10;PWM[7]=10;PWM[8]=10;PWM[9]=10;PWM[10]=10;//78
                              delay(10);
                              ResetPWM();
                              //79
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[1]=20;PWM[2]=20;//80
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[1]=40;PWM[2]=40;PWM[3]=10;PWM[4]=10;PWM[5]=10;PWM[6]=10;PWM[7]=10;PWM[8]=10;PWM[9]=10;PWM[10]=10;//81
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[1]=60;PWM[2]=60;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//82
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[1]=80;PWM[2]=80;PWM[3]=30;PWM[4]=30;PWM[5]=30;PWM[6]=30;PWM[7]=30;PWM[8]=30;PWM[9]=30;PWM[10]=30;//83
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[1]=100;PWM[2]=100;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//84
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[1]=80;PWM[2]=80;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//85
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[1]=60;PWM[2]=60;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//86
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[1]=40;PWM[2]=40;PWM[3]=70;PWM[4]=70;PWM[5]=70;PWM[6]=70;PWM[7]=70;PWM[8]=70;PWM[9]=70;PWM[10]=70;//87
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[1]=20;PWM[2]=20;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//88
                              delay(10);
                              ResetPWM();
                              PWM[3]=90;PWM[4]=90;PWM[5]=90;PWM[6]=90;PWM[7]=90;PWM[8]=90;PWM[9]=90;PWM[10]=90;//89
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//90
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[3]=90;PWM[4]=90;PWM[5]=90;PWM[6]=90;PWM[7]=90;PWM[8]=90;PWM[9]=90;PWM[10]=90;//91
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//92
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[3]=70;PWM[4]=70;PWM[5]=70;PWM[6]=70;PWM[7]=70;PWM[8]=70;PWM[9]=70;PWM[10]=70;//93
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//94
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//95
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//96
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[3]=30;PWM[4]=30;PWM[5]=30;PWM[6]=30;PWM[7]=30;PWM[8]=30;PWM[9]=30;PWM[10]=30;//97
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//98
                              delay(10);
                              ResetPWM();
                              PWM[1]=20;PWM[3]=10;PWM[4]=10;PWM[5]=10;PWM[6]=10;PWM[7]=10;PWM[8]=10;PWM[9]=10;PWM[10]=10;//99
                              delay(10);
                              ResetPWM();
                              PWM[1]=40;//100
                              delay(10);
                              ResetPWM();
                              PWM[1]=60;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//101
                              delay(10);
                              ResetPWM();
                              PWM[1]=80;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//102
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//103
                              delay(10);
                              ResetPWM();
                              PWM[1]=80;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//104
                              delay(10);
                              ResetPWM();
                              PWM[1]=60;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//105
                              delay(10);
                              ResetPWM();
                              PWM[1]=40;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//106
                              delay(10);
                              ResetPWM();
                              PWM[1]=20;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//107
                              delay(10);
                              ResetPWM();
                              PWM[2]=20;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//108
                              delay(10);
                              ResetPWM();
                              PWM[2]=40;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//109
                              delay(10);
                              ResetPWM();
                              PWM[2]=60;//110
                              delay(10);
                              ResetPWM();
                              PWM[2]=80;PWM[3]=25;PWM[4]=25;PWM[5]=25;PWM[6]=25;PWM[7]=25;PWM[8]=25;PWM[9]=25;PWM[10]=25;//111
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//112
                              delay(10);
                              ResetPWM();
                              PWM[2]=80;PWM[3]=75;PWM[4]=75;PWM[5]=75;PWM[6]=75;PWM[7]=75;PWM[8]=75;PWM[9]=75;PWM[10]=75;//113
                              delay(10);
                              ResetPWM();
                              PWM[2]=60;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//114
                              delay(10);
                              ResetPWM();
                              PWM[2]=40;PWM[3]=75;PWM[4]=75;PWM[5]=75;PWM[6]=75;PWM[7]=75;PWM[8]=75;PWM[9]=75;PWM[10]=75;//115
                              delay(10);
                              ResetPWM();
                              PWM[2]=20;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//116
                              delay(10);
                              ResetPWM();
                              PWM[3]=25;PWM[4]=25;PWM[5]=25;PWM[6]=25;PWM[7]=25;PWM[8]=25;PWM[9]=25;PWM[10]=25;//117
                              delay(10);
                              ResetPWM();
                              //118
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[1]=20;PWM[2]=20;//119
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[1]=40;PWM[2]=40;PWM[3]=10;PWM[4]=10;PWM[5]=10;PWM[6]=10;PWM[7]=10;PWM[8]=10;PWM[9]=10;PWM[10]=10;//120
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[1]=60;PWM[2]=60;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//121
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[1]=80;PWM[2]=80;PWM[3]=30;PWM[4]=30;PWM[5]=30;PWM[6]=30;PWM[7]=30;PWM[8]=30;PWM[9]=30;PWM[10]=30;//122
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[1]=100;PWM[2]=100;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//123
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[1]=80;PWM[2]=80;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//124
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[1]=60;PWM[2]=60;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//125
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[1]=40;PWM[2]=40;PWM[3]=70;PWM[4]=70;PWM[5]=70;PWM[6]=70;PWM[7]=70;PWM[8]=70;PWM[9]=70;PWM[10]=70;//126
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[1]=20;PWM[2]=20;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//127
                              delay(10);
                              ResetPWM();
                              PWM[3]=90;PWM[4]=90;PWM[5]=90;PWM[6]=90;PWM[7]=90;PWM[8]=90;PWM[9]=90;PWM[10]=90;//128
                              delay(10);
                              ResetPWM();
                              PWM[2]=20;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//129
                              delay(10);
                              ResetPWM();
                              PWM[2]=40;PWM[3]=90;PWM[4]=90;PWM[5]=90;PWM[6]=90;PWM[7]=90;PWM[8]=90;PWM[9]=90;PWM[10]=90;//130
                              delay(10);
                              ResetPWM();
                              PWM[2]=60;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//131
                              delay(10);
                              ResetPWM();
                              PWM[2]=80;PWM[3]=70;PWM[4]=70;PWM[5]=70;PWM[6]=70;PWM[7]=70;PWM[8]=70;PWM[9]=70;PWM[10]=70;//132
                              delay(10);
                              ResetPWM();
                              PWM[2]=100;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//133
                              delay(10);
                              ResetPWM();
                              PWM[2]=80;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//134
                              delay(10);
                              ResetPWM();
                              PWM[2]=60;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//135
                              delay(10);
                              ResetPWM();
                              PWM[2]=40;PWM[3]=30;PWM[4]=30;PWM[5]=30;PWM[6]=30;PWM[7]=30;PWM[8]=30;PWM[9]=30;PWM[10]=30;//136
                              delay(10);
                              ResetPWM();
                              PWM[2]=20;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//137
                              delay(10);
                              ResetPWM();
                              PWM[1]=20;PWM[3]=10;PWM[4]=10;PWM[5]=10;PWM[6]=10;PWM[7]=10;PWM[8]=10;PWM[9]=10;PWM[10]=10;//138
                              delay(10);
                              ResetPWM();
                              PWM[1]=40;//139
                              delay(10);
                              ResetPWM();
                              PWM[1]=60;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//140
                              delay(10);
                              ResetPWM();
                              PWM[1]=80;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//141
                              delay(10);
                              ResetPWM();
                              PWM[1]=100;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//142
                              delay(10);
                              ResetPWM();
                              PWM[1]=80;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//143
                              delay(10);
                              ResetPWM();
                              PWM[1]=60;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//144
                              delay(10);
                              ResetPWM();
                              PWM[1]=40;PWM[3]=80;PWM[4]=80;PWM[5]=80;PWM[6]=80;PWM[7]=80;PWM[8]=80;PWM[9]=80;PWM[10]=80;//145
                              delay(10);
                              ResetPWM();
                              PWM[1]=20;PWM[3]=60;PWM[4]=60;PWM[5]=60;PWM[6]=60;PWM[7]=60;PWM[8]=60;PWM[9]=60;PWM[10]=60;//146
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[3]=40;PWM[4]=40;PWM[5]=40;PWM[6]=40;PWM[7]=40;PWM[8]=40;PWM[9]=40;PWM[10]=40;//147
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[3]=20;PWM[4]=20;PWM[5]=20;PWM[6]=20;PWM[7]=20;PWM[8]=20;PWM[9]=20;PWM[10]=20;//148
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;//149
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[3]=25;PWM[4]=25;PWM[5]=25;PWM[6]=25;PWM[7]=25;PWM[8]=25;PWM[9]=25;PWM[10]=25;//150
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//151
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[3]=75;PWM[4]=75;PWM[5]=75;PWM[6]=75;PWM[7]=75;PWM[8]=75;PWM[9]=75;PWM[10]=75;//152
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//153
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[3]=75;PWM[4]=75;PWM[5]=75;PWM[6]=75;PWM[7]=75;PWM[8]=75;PWM[9]=75;PWM[10]=75;//154
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;PWM[8]=50;PWM[9]=50;PWM[10]=50;//155
                              delay(10);
                              ResetPWM();
                              PWM[3]=25;PWM[4]=25;PWM[5]=25;PWM[6]=25;PWM[7]=25;PWM[8]=25;PWM[9]=25;PWM[10]=25;//156
                              delay(10);
                              ResetPWM();
                              //157
                              delay(10);
                              ResetPWM();
                              //158
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[1]=20;PWM[2]=20;PWM[3]=25;PWM[4]=25;PWM[5]=25;PWM[6]=25;PWM[7]=25;//159
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[1]=40;PWM[2]=40;PWM[3]=50;PWM[4]=50;PWM[5]=50;PWM[6]=50;PWM[7]=50;//160
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[1]=60;PWM[2]=60;PWM[3]=75;PWM[4]=75;PWM[5]=75;PWM[6]=75;PWM[7]=75;//161
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[1]=80;PWM[2]=80;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=25;PWM[9]=25;PWM[10]=25;//162
                              delay(10);
                              ResetPWM();
                              PWM[0]=100;PWM[1]=100;PWM[2]=100;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=50;PWM[9]=50;PWM[10]=50;//163
                              delay(10);
                              ResetPWM();
                              PWM[0]=80;PWM[1]=80;PWM[2]=80;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=75;PWM[9]=75;PWM[10]=75;//164
                              delay(10);
                              ResetPWM();
                              PWM[0]=60;PWM[1]=60;PWM[2]=60;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//165
                              delay(10);
                              ResetPWM();
                              PWM[0]=40;PWM[1]=40;PWM[2]=40;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//166
                              delay(10);
                              ResetPWM();
                              PWM[0]=20;PWM[1]=20;PWM[2]=20;PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//167
                              delay(10);
                              ResetPWM();
                              PWM[3]=100;PWM[4]=100;PWM[5]=100;PWM[6]=100;PWM[7]=100;PWM[8]=100;PWM[9]=100;PWM[10]=100;//168
                              delay(10);
                              ResetPWM();
                              //169
                              }
                              }
                              lyhunghau

                              Comment


                              • #45
                                Nguyên văn bởi quangvinh2k8 Xem bài viết
                                password unrar là gì vậy?

                                Cám ơn nha.
                                Mãi đi tìm vàng.

                                Comment

                                Về tác giả

                                Collapse

                                quangvinh2k8 Tìm hiểu thêm về quangvinh2k8

                                Bài viết mới nhất

                                Collapse

                                Đang tải...
                                X