Skip to content

Commit

Permalink
Merge pull request #205 from NeftaliVenancio/patch-3
Browse files Browse the repository at this point in the history
Update sensors.js
  • Loading branch information
cparrapa authored Apr 17, 2024
2 parents 58288ec + b115e4a commit 77b42ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/blocs&generateurs/sensors.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ Blockly.Arduino['button_touch_sensor2'] = function(block) {
Blockly.Arduino.setups_['setup_btntouch_'+dropdown_pin] = 'pinMode('+dropdown_pin+',INPUT);';

if(logic=='TRUE')
var code = '(!digitalRead('+dropdown_pin+'))';
var code = 'digitalRead('+dropdown_pin+')';
else
var code = 'digitalRead('+dropdown_pin+')';
var code = '(!digitalRead('+dropdown_pin+'))';
return [code, Blockly.Arduino.ORDER_ATOMIC];
};

Expand Down

0 comments on commit 77b42ba

Please sign in to comment.