OttoDIY / blockly

Otto Blockly; a fully integrated graphical programming for any type of Arduino projects, including robots, ready to install in your computer, it works offline and also online
https://www.ottodiy.com/software
GNU General Public License v2.0
113 stars 80 forks source link

esp8266 ultrasound not working in v 1.5 #190

Closed jojumohan closed 1 year ago

jojumohan commented 1 year ago

I have tried to use ultrasound in ESP 8266 but it is showing a constant value it is working in Arduino programming can you please fix it

cparrapa commented 1 year ago

Hi @jojumohan are you using a HC-SR04 ultrasonic module with TRIG and ECHO pins? The same code is working in arduino?

jojumohan commented 1 year ago

yes I figured it out I edited some blocks in XML now it is working thanks for response

jojumohan commented 1 year ago

thanks

cparrapa commented 1 year ago

Hi @jojumohan can you tell us please what changes you made so we fix it?

jojumohan commented 1 year ago

hi i changed ultrasonic_distance2 to ultrasonic_distance in toolbox folder toolbox_arduino_all-esp8266.xml so I got old ultra-sound block now i can use HC-SR04