erreur de compilation

Jacques ROBERT

Senior Member
Bonsoir,
Programme d'essai:
Code:
 'RADAR US
dirsB = %11111111
dirsC = %00000000
#picaxe 20M2
init:pinsB = %00000000
     pinsC = %00000000
main:
     pulsin C.6,1,w1
     if w1 < 350 then action
     goto main
action:
     readadc10 C.7,w2
     if w2 < 312 then:high B.0:goto main
     if w2 > 400 then:high B.1:goto main    "sur cette ligne on me signale:erreur à la compilation [7936]"je ne comprends pas ce message,qui peut m'aider? "S.O.S.
     high B.2
     goto main
 

PieM

Senior Member
Et les endif !!


Code:
 'RADAR US
dirsB = %11111111
dirsC = %00000000
#picaxe 20M2
init:pinsB = %00000000
     pinsC = %00000000
main:
     pulsin C.6,1,w1
     if w1 < 350 then action
     goto main
action:
     readadc10 C.7,w2
     if w2 < 312 then:high B.0:goto main: endif
     if w2 > 400 then:high B.1:goto main : endif   
     high B.2
     goto main
 
Top