Skip to content

Commit

Permalink
Merge pull request #200 from NeftaliVenancio/patch-1
Browse files Browse the repository at this point in the history
Update motor.js
  • Loading branch information
cparrapa authored Apr 10, 2024
2 parents cfa905d + ca1ebc1 commit 58b1cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/blocs&generateurs/motor.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Blockly.Arduino["moteur_dc"]=function(block){
var code= "digitalWrite(l298n_in1,LOW);\ndigitalWrite(l298n_in2,HIGH);\nanalogWrite(l298n_ena,("+value_vitesse+"));\ndigitalWrite(l298n_in3,LOW);\ndigitalWrite(l298n_in4,HIGH);\nanalogWrite(l298n_enb,("+value_vitesse+"));\n"
}
else if (dropdown_etat=="0"){
var code= "digitalWrite(l298n_in1,HIGH);\ndigitalWrite(l298n_in2,LOW);\nanalogWrite(l298n_ena,("+value_vitesse+"));\ndigitalWrite(l298n_in3,HIGH);\ndigitalWrite(l298n_in4,HIGH);\nanalogWrite(l298n_enb,("+value_vitesse+"));\n"
var code= "digitalWrite(l298n_in1,HIGH);\ndigitalWrite(l298n_in2,LOW);\nanalogWrite(l298n_ena,("+value_vitesse+"));\ndigitalWrite(l298n_in3,HIGH);\ndigitalWrite(l298n_in4,LOW);\nanalogWrite(l298n_enb,("+value_vitesse+"));\n"
}
}
if (dropdown_moteur=="6") {
Expand Down

0 comments on commit 58b1cdd

Please sign in to comment.