AVANCER ET RECULER

 

DO                                                                                       ' pour toujours

          PORTB.2 = 0 '                                                                        puissance off

              tempo(50)

 

           PORTB.0 = 1                                                                            'sens 1

           PORTB.1 = 1

               tempo(50)

 

            PORTB.2 = 1                                                                            'puissance on

                  tempo(200)

           PORTB.2 = 0                                                                            'puissance off

                  tempo(50)

           PORTB.0 = 0                                                                             'sens 2

           PORTB.1=0

                   tempo(50)

 

           PORTB.2=1                                                                              'puissance on

                   tempo(200)

LOOP

 

PAGE PRECEDENTE